InitParams

data class InitParams @JvmOverloads constructor(appId: String, context: Context, useCaching: Boolean, logLevel: LogLevel, isForeground: Boolean, appVersion: String?)

Represents a params used in SendbirdChat.init.

Since

4.0.0

See also

Constructors

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

Properties

Link copied to clipboard
val appId: String

The application ID.

Link copied to clipboard
var appVersion: String? = null

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

Link copied to clipboard
val context: Context

The application context.

Link copied to clipboard
var isForeground: Boolean = false

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

Link copied to clipboard
var logLevel: LogLevel

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

Link copied to clipboard
val useCaching: Boolean

Whether to use local caching or not.