Browse docs

Jump to core topics without leaving the page.

Kotlin SDK

Track native Android events with the Kotlin SDK.

The Kotlin SDK is designed for Android apps that need reliable mobile analytics with minimal overhead.

Best for

  • Native Android apps
  • Teams tracking offline usage
  • Apps with custom event schemas

Install

Add the SDK dependency and configure your client ID.

Install FlashAnalytics

Initialize

val fa = FlashAnalytics(
  appId = "YOUR_CLIENT_ID"
)

Track events

fa.track("purchase_completed", mapOf(
  "revenue" to 49.0,
  "currency" to "USD"
))

Offline support

Events are stored locally and delivered when the device reconnects.