HomeDocsAndroidConfiguration

Configuration

v1.7.1

Configure the SDK with the options available on your platform.

OptionDefaultDescription
apiKey(String)RequiredYour API key from the BugScreen console
screenshotDetection(Boolean)trueAuto-detect screenshots and show report UI
debug(Boolean)falseEnable SDK debug behavior (use BuildConfig.DEBUG)
requestPermissionsOnStart(Boolean)falseAuto-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.