Companion

object Companion : Core

Companion object providing static SDK operations and the Factory for creating instances.

Static operations accessible here include provideDeviceToken, clearStorage, setLogLevel, and delete. These can be called without an active CoreClient instance.

Properties

Link copied to clipboard

Factory for creating and destroying CoreClient instances.

Functions

Link copied to clipboard
open suspend override fun clearStorage(context: Context, clearAuthorization: Boolean = true): Result<Unit>

Clears all locally stored SDK data including conversations, messages, and optionally the authorization token.

Link copied to clipboard
open suspend override fun provideDeviceToken(context: Context, token: String): Result<String>

Stores the Firebase Cloud Messaging (FCM) device token for push notification registration.

Link copied to clipboard
open override fun setLogLevel(level: Level, logCategory: LogCategory = LogCategory.SMI)

Configures the log output level for SDK components.