Integrate Instalog into your Android applications
Note: Some InstalogOptions features are disabled by default for performance reasons. You’ll need to explicitly enable them based on your application’s requirements.
initialize()
before using other methodsMethod | Description |
---|---|
initialize(key: String, context: Context, handler: InstalogAlertDialogHandler? = null, options: InstalogOptions? = null) | Initializes the SDK with optional custom alert handler and configuration options |
logEvent(context: Context, log: InstalogLogModel) | Logs an event |
identifyUser(id: String) | Identifies the current user |
showFeedbackModal(context: Context) | Shows feedback collection UI |
sendCrash(string: error, stack: String) | Manually sends a crash report for a caught exception |
getInstance(): Instalog | Gets the singleton instance |
Option | Type | Default | Description |
---|---|---|---|
isCrashEnabled | boolean | false | Enable crash reporting |
isFeedbackEnabled | boolean | false | Enable user feedback collection |
isLogEnabled | boolean | false | Enable event logging |
isLoggerEnabled | boolean | false | Enable console logging |
InstalogLogModel
: Represents a log eventInstalogCrashModel
: Represents crash dataInstalogFeedbackModel
: Represents user feedback