Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun createChannel(name: String, memberIds: List<String>, displayPictureUrl: String?, visibility: ChatChannel.ChannelVisibility, isDirectMessage: Boolean, onResult: (channel: ChatChannel?, errorString: String?) -> Unit)

Creates a chat channel with specified name and userIds as members.

Link copied to clipboard
fun getChannelMembers(channelId: String, onResult: (channelMembers: List<DyteParticipant>?, errorString: String?) -> Unit)

Returns a list of members added to a channel

Link copied to clipboard
fun getMessages(timestamp: Long, size: Int, offset: Int = 0, reversed: Boolean, channelId: String? = null, onResult: (messagesResult: GetMessagesResult?, errorString: String?) -> Unit)

Gets chat messages in a paginated manner

Link copied to clipboard
Link copied to clipboard
fun sendFileMessage(fileUri: Uri)
fun sendFileMessage(filePath: String)

Send chat file message

fun sendFileMessage(filePath: String, fileName: String)

Send file message

Link copied to clipboard
fun sendFileMessageToChannel(channelId: String, fileUri: Uri)

Sends a FILE type chat message to Channel

Link copied to clipboard
fun sendImageMessage(imageUri: Uri)
fun sendImageMessage(imagePath: String)
fun sendImageMessage(filePath: String, fileName: String)

Send chat image message

Link copied to clipboard
fun sendImageMessageToChannel(channelId: String, imageUri: Uri)

Sends a IMAGE type chat message to Channel

Link copied to clipboard
fun sendTextMessage(message: String)

Sends a string type chat message in the given room

Link copied to clipboard
fun sendTextMessageToChannel(channelId: String, message: String)

Sends a TEXT type chat message to Channel

Link copied to clipboard
fun toMap(): List<Map<String, Any?>>
Link copied to clipboard
fun updateChannel(channelId: String, channelUpdateParams: ChatChannelUpdateParams, onResult: (channel: ChatChannel?, errorString: String?) -> Unit)

Updates a chat channel