init Flow
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.17.0
Parameters
init Params
InitParams used for initialization.