Bug Screen SDK
object BugScreenSDK
Main SDK class for BugScreen
Initialize in your Application class:
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
BugScreenSDK.start(
BugScreenConfig.Builder(this)
.apiKey("fb_your_api_key")
.enableScreenshotDetection(true)
.enableLogging(BuildConfig.DEBUG)
.build()
)
}
}Content copied to clipboard
Functions
Link copied to clipboard
Get the permission string required for screenshot detection on this device.
Link copied to clipboard
Check if the app has the required permission for screenshot detection.
Link copied to clipboard
Open the bug report screen
Link copied to clipboard
Request the screenshot detection permission from the user.
Link copied to clipboard
Check if the app should request screenshot detection permission from the user.
Link copied to clipboard
Start the SDK with the given configuration