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