Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Capturing a screenshot of the rootView
// Simple screenshot
ScreenCaptor.takeScreenshot(
view = rootView,
screenshotFilename = "my_favorite_screenshot"
)
// Screenshot with all the configurations
ScreenCaptor.takeScreenshot(
view = rootView,
screenshotFilename = "my_favorite_screenshot",
screenshotNameSuffix = "latest",
viewIdsToExclude = setOf(R.id.date, R.id.account_value),
screenshotFormat = PNG,
screenshotQuality = BEST
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.