Configuration
v1.9.0Configure the SDK with the options available on your platform.
Set these options on BugScreenConfig.Builder:
| Option | Default | Description |
|---|---|---|
| apiKey(String) | Required | Your API key from the BugScreen console |
| screenshotDetection(Boolean) | true | Auto-detect screenshots and show report UI |
| shakeDetection(Boolean) | false | Open the reporter on a deliberate foreground shake with a best-effort app screenshot. |
| debug(Boolean) | false | Enable SDK diagnostic logging. |
| requestPermissionsOnStart(Boolean) | false | Auto-request the runtime permission needed for screenshot detection on Android 13 and below, on the first resumed Activity. No-op on Android 14+ or if already granted. |
| captureSystemLogs(Boolean) | false | Attach current-process system logs as a separate file. |
| showReportNotification(...) | Off | Show a silent foreground notification. Optional show and requestPermission default to true. Set show = false to disable it, or requestPermission = false to handle authorization yourself. |
| showFloatingButton() / showFloatingButton(Boolean) | false | Shows the floating button at startup when enabled. Floating button guide |
| startScreenRecordingImmediately(Boolean) | false | Start recording after system permission. The no-op artifact never records. |
| screenRecordingOptions(ScreenRecordingOptions) | 30 seconds, BALANCED | Set duration and LOW, BALANCED or HIGH quality. Screen recording |
Choose each app’s reporter wording, Type choices and Severity visibility in the Console’s Reporter tab.
For system-log setup, privacy and limits, see Logging.