Redact individual views or disable capture altogether
Redact views
By default the SDK will automatically skip capturing any view with a tag set to the string "lr-hide"
. Additional tags can be added when configuring the SDK with the options.addRedactionTag(Object tag)
method. A non-String Object can be provided for programmatic checks on tags, our SDK will run tagObject.equals(view.getTag())
against this object.
options.addRedactionTag(Object tag)
options.addRedactionTag(Object tag)
Add additional View Tags that should be redacted when capturing the screen. The lr-hide
tag will always redact views.
Disable image capture entirely
options.setEnableBitmapCapture(boolean enable)
options.setEnableBitmapCapture(boolean enable)
Disable image capture completely by setting this to true
.
Pause View Capture
To completely disable the view capture system call SDK.pauseViewCapture()
. If a capture is already in progress it will not be stopped, but no view captures will be created until the system is resumed with SDK.unpauseViewCapture()
.