screenshotsEnabled property

bool screenshotsEnabled
final

Bool indicating if screenshot capture is enabled. (default = enabled).

If enabled, the Instrumentation.takeScreenshot method will capture screenshots, and depending on the configuration in the controller, automatic screenshots can be taken. You can always disable screenshots entirely from your controller.

If disabled, the Instrumentation.takeScreenshot method will NOT capture screenshots and no automatic screenshots will be captured. You will NOT be able to enable screenshots from your controller.

Most applications should leave this option enabled and control the screenshots from the controller configuration page.

Implementation

final bool screenshotsEnabled;