ScreenshotOptions

data class ScreenshotOptions(val scale: Float = 0.5f, val quality: Int = 80, val format: Bitmap.CompressFormat = Bitmap.CompressFormat.JPEG, val keepOnSuccess: Boolean = true)

Configurable screenshot options that apply to all tests.

To override a configuration for a single test, annotate it with TestScreenshot

Parameters

scale

the scale of the screenshot in relation to the original display size. Default: 0.5

quality

the quality of the screenshot. From 0 to 100. Default: 80

format

the image format of the screenshot. Default: JPG

keepOnSuccess

true if images should be kept if the test passes. Default: true

Constructors

Link copied to clipboard
constructor(scale: Float = 0.5f, quality: Int = 80, format: Bitmap.CompressFormat = Bitmap.CompressFormat.JPEG, keepOnSuccess: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val quality: Int = 80
Link copied to clipboard
val scale: Float = 0.5f

Functions

Link copied to clipboard