Package com.amazonaws.ivs.chat.messaging

Types

Link copied to clipboard
object ChatErrorCodes

Error codes returned by chat room.

Link copied to clipboard
class ChatRoom @JvmOverloads constructor(    regionOrUrl: String,     tokenProvider: (ChatTokenCallback) -> Unit,     maxReconnectAttempts: Int = 3,     val id: String = UUID.randomUUID().toString())

Represents IVS chat room connection.

Link copied to clipboard
interface ChatRoomListener

Interface for delivering chat room lifecycle events as well as received messages and events.

Link copied to clipboard
data class ChatToken(    val token: String,     val sessionExpirationTime: Date?,     val tokenExpirationTime: Date?)

Represents IVS chat token to be used to establish room connection. This should be fetched through your backend for security purposes from IVS Chat API.

Link copied to clipboard
interface ChatTokenCallback

Callback interface used to pass the result of chat token request.

Link copied to clipboard

Interface for reporting delete message request result.

Successful completion of the request is confirmed by receiving a delete message event with matching request id.

Failure of the request is confirmed by receiving a chat error with a matching request id.

Link copied to clipboard
enum DisconnectReason : Enum<DisconnectReason>

Reason why room transitions to disconnected state.

Link copied to clipboard

Interface for reporting disconnect user request result.

Successful completion of the request is confirmed by receiving a disconnect user event with matching request id.

Failure of the request is confirmed by receiving a chat error with a matching request id.

Link copied to clipboard
interface RequestCallback<Request, Response>

Generic interface for reporting user request completion or rejection by the IVS service.

Link copied to clipboard
typealias SendMessageCallback = RequestCallback<SendMessageRequest, ChatMessage>

Interface for reporting send message request result.

Successful completion of the request is confirmed by receiving a chat message with matching request id.

Failure of the request is confirmed by receiving a chat error with a matching request id.