RealtimeSdkListener

interface RealtimeSdkListener

Functions

onDataChannelClosed
Link copied to clipboard
abstract fun onDataChannelClosed(room: Room, participant: RemoteParticipant)
Raised when a data channel is closed.
onDataChannelOpen
Link copied to clipboard
abstract fun onDataChannelOpen(room: Room, participant: RemoteParticipant)
Raised when a data channel is opened.
onLocalStreamUpdated
Link copied to clipboard
abstract fun onLocalStreamUpdated(room: Room, participant: LocalParticipant)
Raised when the local stream is added, removed or changed.
onMessageReceived
Link copied to clipboard
abstract fun onMessageReceived(room: Room, participant: RemoteParticipant, message: String)
Raised when a data channel message is received.
onParticipantJoined
Link copied to clipboard
abstract fun onParticipantJoined(room: Room, participant: RemoteParticipant)
Raised when a remote participant joined the room.
onParticipantLeft
Link copied to clipboard
abstract fun onParticipantLeft(room: Room, participant: RemoteParticipant)
Raised when a remote participant leaves the room.
onRegistrationRejected
Link copied to clipboard
abstract fun onRegistrationRejected(room: Room, reason: String)
Raised when the registration to the room is rejected.
onRemoteStreamUpdated
Link copied to clipboard
abstract fun onRemoteStreamUpdated(room: Room, participant: RemoteParticipant)
Raised when a remote stream is added, removed or changed.
onRoomInitError
Link copied to clipboard
abstract fun onRoomInitError(error: String)
Raised when an error is encountered while the local participant is joining the room.
onRoomInitialized
Link copied to clipboard
abstract fun onRoomInitialized(room: Room)
Raised when the room is joined by the local participant.
onRoomLeft
Link copied to clipboard
abstract fun onRoomLeft(room: Room, participant: LocalParticipant)
Raised when local participant successfully left room.