Fullstory for Compose Multiplatform Apps - API Overview
Getting Started
See Getting Started with Compose Multiplatform (CMP)
The fullstory-cmp-api library lets you call Fullstory from shared (commonMain) Compose Multiplatform code. It is a thin API layer over the native Fullstory SDKs:
| Platform | Behavior |
|---|---|
| Android | Calls the Fullstory Android SDK (com.fullstory:instrumentation-full and com.fullstory:compose). |
| iOS | Calls the Fullstory iOS SDK and plants capture modifier nodes read by the Fullstory Compose Multiplatform fork. |
| JVM, JS, Wasm, macOS | No-op. Calls compile and do nothing, so common code can call the API without per-platform source sets. |
On Android and iOS the capture SDK is looked up at runtime. If it is not present, API calls quietly do nothing.
Importing Fullstory
import com.fullstory.cmp.api.*
Unlike other Fullstory mobile APIs, the CMP API is a set of top-level functions (such as fsEvent()) and Modifier extensions (such as Modifier.fsMask()) rather than an FS class.
CMP API
Fullcapture
fsShutdown()fsRestart()fsRegisterStatusListener()fsUnregisterStatusListener()fsResetIdleTimer()Modifier.fsTag()Modifier.fsClass()Modifier.fsId()Modifier.fsAttribute()Modifier.fsSelector()Modifier.fsMask()Modifier.fsUnmask()Modifier.fsExclude()Modifier.fsWatch()fsConsent()fsLog()FSRuntimeConfigFSBuildConfigfsSdkVersion