Dyte Chat
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
Link copied to clipboard
Send chat file message
Send file message
Link copied to clipboard
Sends a FILE type chat message to Channel
Link copied to clipboard
Send chat image message
Link copied to clipboard
Sends a IMAGE type chat message to Channel
Link copied to clipboard
Sends a string type chat message in the given room
Link copied to clipboard
Sends a TEXT type chat message to Channel
Link copied to clipboard
fun updateChannel(channelId: String, channelUpdateParams: ChatChannelUpdateParams, onResult: (channel: ChatChannel?, errorString: String?) -> Unit)
Updates a chat channel