v4.17.0-ktx
·
34 commits
to main
since this release
Improvements
-
Replaced all ktx interfaces with either an
await
prefix or aFlow
postfix and deprecated the existing interfaces.- This is to prevent issue with auto-import within the IDE where the interface cannot be imported automatically due to the previous interfaces having the same name as the original Chat SDK interfaces.
/** * All `suspend fun` now has an `await` prefix. */ // Previous suspend fun SendbirdChat.connect(userId: String, authToken: String? = null, apiHost: String? = null, wsHost: String? = null): AuthUser // New suspend fun SendbirdChat.awaitConnect(userId: String, authToken: String? = null, apiHost: String? = null, wsHost: String? = null): AuthUser /** * All methods returning a `Flow` now has a `Flow` postfix. */ // Previous fun SendbirdChat.init(initParams: InitParams): Flow<InitResult> // New fun SendbirdChat.initFlow(initParams: InitParams): Flow<InitResult>
-
Added interface for
SendbirdPushHelper
class -
Added
SendbirdChat.awaitAuthenticate()
as a replacement forSendbirdChat.authenticateFeed()
-
Added
SendbirdChat.awaitGetTotalUnreadNotificationCount()