-
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()
- Added
suspend fun
for Chat SDK'sQuery
classes
Added MessageTemplate
feature for UIKit to render messages with templates.
- Added suspend function
SendbirdChat.getMessageTemplate(String): MessageTemplate
andSendbirdChat.getMessageTemplatesByToken(String?, MessageTemplateListParams): MessageTemplatesResult
- Added result handler function for message templates
SendbirdChat.getMessageTemplate(String, ResultHandler<MessageTemplate>?)
andfun SendbirdChat.getMessageTemplatesByToken(String?, MessageTemplateListParams, ResultHandler<MessageTemplatesResult>?)
.
- Removed extension function in
BaseMessage
related to threaded message released inv4.15.2
- Added new Kotlin Extension for SendbirdChat SDK
class User { suspend fun createMetaData(metaDataMap: Map<String, String>): Map<String, String> suspend fun updateMetaData(metaDataMap: Map<String, String>): Map<String, String> suspend fun deleteMetaData(key: String) suspend fun deleteAllMetaData() } class Poll { companion object { suspend fun create(params: PollCreateParams): Poll suspend fun get(params: PollRetrievalParams): Poll } } class PollOption { companion object { suspend fun get(params: PollOptionRetrievalParams): PollOption } }
- Added extension function in
BaseMessage
related to threaded messageclass BaseMessage { suspend fun markThreadAsRead() suspend fun setPushNotificationEnabled(enabled: Boolean) }
- Improved stability
- Introducing new Kotlin Extension for SendbirdChat SDK
- Supported for all public interfaces