Skip to content

v4.9.0

Compare
Choose a tag to compare
@sendbird-sdk-deployment sendbird-sdk-deployment released this 09 Jun 08:08
· 120 commits to master since this release

Features

MultipleFilesMessage

You can send a MultipleFilesMessage that contains multiple files in a single message via GroupChannel.sendMultipleFilesMessage(params:fileUploadHandler:completionHandler:)

  • Added MultipleFilesMessage.
  • Added GroupChannel.sendMultipleFilesMessage, MultipleFilesMessageCreateParams, UploadableFileInfo and UploadedFileInfo.
  • Added MultipleFilesMessageHandler and FileUploadHandler.
  • Added SendbirdChat.getMultipleFilesMessageFileCountLimit() that indicates the maximum count of files that can be included in a single message.
let params = MultipleFilesMessageCreateParams(
    uploadableFileInfoList: [UploadableFileInfo(file: file), UploadableFileInfo(fileURL: fileUrl)]
)

channel.sendMultipleFilesMessage(
    params: params,
    fileUploadHandler = { requestId, index, uploadableFileInfo, error ->
        // handle the upload result of each UploadableFileInfo. 
    },
    completionHandler = { message, error ->
        // handle the result of sending MultipleFilesMessage.
    }
)