HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

Enable or Disable Fragment Capture

šŸš§

Capturing Fragments

Instabug does not capture fragments by default. In order to start capturing them, you'll need to follow the instructions mentioned here.

If your app is set up to capture fragments with Instabug, you can enable or disable this feature by using the API below, passing a Boolean variable to it:

//Enable
APM.setFragmentSpansEnabled(true)
//Disble
APM.setFragmentSpansEnabled(false)
//Enable
APM.setFragmentSpansEnabled(true)
//Disble
APM.setFragmentSpansEnabled(false)