Reference
Introductionโ
The reference is your key to a comprehensive understanding of the Screeb Kotlin Multiplatform SDK.
โจ If this is your first look at the documentation, we recommend beginning with the Getting started guide.
Screeb methodsโ
After installing the Screeb KMP SDK, you can call the SDK from common Kotlin code:
import app.screeb.sdk.kmp.Screeb
Screeb.methodName(argument1, argument2)
| Method | Description | More |
|---|---|---|
initSdk | Initialize the SDK and associate the current session with your Screeb project. | ๐ |
closeSdk | Stop the SDK and clear registered hooks. | ๐ |
setIdentity | Identify the current user. | ๐ |
resetIdentity | Reset the current user session and switch to an anonymous visitor. | ๐ |
getIdentity | Get the current visitor identity. | ๐ |
setProperties | Update visitor properties. | ๐ |
assignGroup | Assign the current user to a group. | ๐ |
unassignGroup | Remove the current user from a group. | ๐ |
trackEvent | Track a custom event. | ๐ |
trackScreen | Track a screen navigation. | ๐ |
startSurvey | Start a survey programmatically. | ๐ |
closeSurvey | Close the current survey. | |
startMessage | Start a message programmatically. | ๐ |
closeMessage | Close the current message. | |
sessionReplayStart | Start session replay recording. | ๐ |
sessionReplayStop | Stop session replay recording. | ๐ |
debug | Get SDK debug information. | ๐ |
debugTargeting | Get targeting debug information. | ๐ |
Hooksโ
ScreebHooks callbacks are supported on Android and iOS for initSdk, startSurvey, and startMessage.
See Hooks.
Session replay privacy helpersโ
The KMP SDK exposes platform helpers for native Android View and iOS UIView instances:
| Helper | Description |
|---|---|
screebMaskText() | Masks text content in session replay. |
screebNoCapture() | Excludes the view from session replay capture. |
screebId("stable_id") | Sets a stable view identifier for replay and targeting context. |
See Privacy helpers.