HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.1. Click to read the latest docs for v12.0.0.

Set Private View

You can use this API to set any particular view as private so that it is always hidden in screenshots.

view.instabug_privateView = true
view.instabug_privateView = YES;
//Should be added in the onCreate after the superclass call
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);