Core

interface Core

Static SDK operations that can be performed without an active CoreClient instance.

These operations are accessible via the CoreClient companion object and cover device token storage, local data management, and SDK log configuration. They are useful in scenarios where you need to interact with SDK storage or logging before creating (or after destroying) a CoreClient:

// Enable debug logging before creating a client
CoreClient.setLogLevel(Level.ALL)

// Clear all local data on user logout
CoreClient.clearStorage(context)

For instance-level operations such as starting a real-time connection, creating conversations, or registering providers, use the CoreClient instance obtained from CoreClient.Factory.

See also

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend 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
abstract suspend fun provideDeviceToken(context: Context, token: String): Result<String>

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

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

Configures the log output level for SDK components.