SessionAdapterDelegate
Last updated
Last updated
void
onSessionConnected(sessionId: String, participants: [ParticipantAdapter])
This event handler is invoked when a session is connected
sessionId - a unique identifier of a session
participants - an array of users currently available in a session
void
onSessionDisconnect()
This event handler is invoked when a session finished
void
onSessionError(error: Error)
This event handler is invoked when a session reported an error
error - an error produced
void
onRemoteParticipantJoined(participant:ParticipantAdapter)
This event handler is invoked when a remote participant joined a session
participant - an object representing a participant
void
onRemoteParticipantLeft(participant:ParticipantAdapter)
This event handler is invoked when a participant left a session
participant - an object representing a participant
void
onRemoteParticipantStartMedia(participant:ParticipantAdapter)
This event handler is invoked when a remote participant started publishing media
participant - an object representing a participant
void
onRemoteParticipantStopMedia(participant:ParticipantAdapter)
This event handler is invoked when a remote participant stopped publishing media
participant - an object representing a participant
void
onRemoteParticipantNotification(message: String, participantId: String)
This event handler is invoked when a remote participant send message
message - text sent by participant
participantId -sender's id
void
onDisconnected(reason: String?, initiator: String)
This event handler is invoked when a remote participant kick you from session, with optional message/reason
reason - text sent by participant as kick reason
initiator - sender's id