take

fun take(storageDir: Uri, options: ScreenshotOptions, filename: String? = null): Uri?

Return

a Uri that points to the new screenshot

Parameters

storageDir

the target directory from the test storage where the screenshot will be saved

options

the configurable options for this screenshot

filename

the desired screenshot filename. Defaults to a random uuid