init

fun SendbirdChat.init(initParams: InitParams): Flow<InitResult>

Deprecated

As of 4.17.0, replaced with initFlow(initParams).

Replace with

initFlow(initParams)

Initializes SendbirdChat with given InitParams.

SendbirdChat.initFlow(params)
.onEach {
when (it) {
is InitResult.Migrating -> {
// migration started
}
is InitResult.Success -> {
// init success
}
}
}.catch {
// init failed
}.launchIn(MainScope())

Return

Flow of InitResult.

Since

4.15.0

Parameters

initParams

InitParams used for initialization.