Android
A Kotlin library with a Jetpack Compose support screen. minSdk 24, compileSdk 35.
Install#
app/build.gradle.kts
The artifact is published to Maven Central. Until a release is published, include the module from source: copy sdks/android into your project and add include(":parley-android", ":parley-core") to settings.gradle.kts.
Initialize#
Show support#
Identify users#
| Name | Type | Description |
|---|---|---|
| Parley.initialize(context, appKey, options) | fun | Call once in Application.onCreate(). |
| Parley.identify(...) | fun | Fire-and-forget with an optional callback. |
| Parley.awaitIdentify(...) | suspend fun | Coroutine version of identify. |
| Parley.updateCustomer(email, name, attributes) | fun | Update details. |
| Parley.track(name, properties) | fun | Record an event. |
| Parley.logout() | fun | End the session. |
| Parley.presentSupport(context) | fun | Opens ParleySupportActivity. |
| ParleySupportScreen(onClose) | @Composable | Embed in your own UI. |
| Parley.unreadCount | StateFlow<Int> | Unread replies, for badges. |
See Appearance and Push notifications.