Skip to content

v4.17.0-ktx

Compare
Choose a tag to compare
@sendbird-sdk-deployment sendbird-sdk-deployment released this 18 Jul 04:23
· 34 commits to main since this release
df22e28

Improvements

  • Replaced all ktx interfaces with either an await prefix or a Flow 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 for SendbirdChat.authenticateFeed()

  • Added SendbirdChat.awaitGetTotalUnreadNotificationCount()