Skip to main content

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:

PlatformBehavior
AndroidCalls the Fullstory Android SDK (com.fullstory:instrumentation-full and com.fullstory:compose).
iOSCalls the Fullstory iOS SDK and plants capture modifier nodes read by the Fullstory Compose Multiplatform fork.
JVM, JS, Wasm, macOSNo-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​

User Identification​

Capture Events​

Pages​

Get Session Details​