Skip to main content
Version: Kotlin Multiplatform SDK

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)
MethodDescriptionMore
initSdkInitialize the SDK and associate the current session with your Screeb project.๐Ÿ‘‰
closeSdkStop the SDK and clear registered hooks.๐Ÿ‘‰
setIdentityIdentify the current user.๐Ÿ‘‰
resetIdentityReset the current user session and switch to an anonymous visitor.๐Ÿ‘‰
getIdentityGet the current visitor identity.๐Ÿ‘‰
setPropertiesUpdate visitor properties.๐Ÿ‘‰
assignGroupAssign the current user to a group.๐Ÿ‘‰
unassignGroupRemove the current user from a group.๐Ÿ‘‰
trackEventTrack a custom event.๐Ÿ‘‰
trackScreenTrack a screen navigation.๐Ÿ‘‰
startSurveyStart a survey programmatically.๐Ÿ‘‰
closeSurveyClose the current survey.
startMessageStart a message programmatically.๐Ÿ‘‰
closeMessageClose the current message.
sessionReplayStartStart session replay recording.๐Ÿ‘‰
sessionReplayStopStop session replay recording.๐Ÿ‘‰
debugGet SDK debug information.๐Ÿ‘‰
debugTargetingGet 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:

HelperDescription
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.