InitParams

data class InitParams @JvmOverloads constructor(val appId: String, val context: Context, val useCaching: Boolean, var logLevel: LogLevel = LogLevel.WARN, var isForeground: Boolean = false, var appVersion: String? = null, var localCacheConfig: LocalCacheConfig = LocalCacheConfig(), var useDnsFallback: Boolean = false)

Represents a params used in SendbirdChat.init.

Since

4.0.0

See also

Constructors

Link copied to clipboard
constructor(appId: String, context: Context, useCaching: Boolean, logLevel: LogLevel = LogLevel.WARN, isForeground: Boolean = false, appVersion: String? = null, localCacheConfig: LocalCacheConfig = LocalCacheConfig(), useDnsFallback: Boolean = false)

Properties

Link copied to clipboard

The application ID.

Link copied to clipboard

The version of the application. The version string will be trimmed if the length is longer than 30.

Link copied to clipboard

The application context.

Link copied to clipboard

Whether SendbirdChat.init is called from foreground or not. Default is false.

Link copied to clipboard

The config for local caching.

Link copied to clipboard

The log level for SendbirdChat SDK. Default is LogLevel.WARN.

Link copied to clipboard

Whether to use local caching or not.

Link copied to clipboard

Whether to use DNS fallback. This is applied when the SDK fails to resolve DNS using the system’s default DNS Default is false.