init
Deprecated
As of 4.17.0, replaced with initFlow(initParams).
Replace with
initFlow(initParams)
Content copied to clipboard
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())
Content copied to clipboard
Return
Flow of InitResult.
Since
4.15.0
Parameters
init Params
InitParams used for initialization.