public static interface Room.Listener
| Modifier and Type | Method and Description |
|---|---|
void |
onConnected(Room room)
Called when a room has succeeded.
|
void |
onConnectFailure(Room room,
TwilioException twilioException)
Called when a connection to a room failed.
|
void |
onDisconnected(Room room,
TwilioException twilioException)
Called when a room has been disconnected from.
|
void |
onParticipantConnected(Room room,
RemoteParticipant remoteParticipant)
Called when a participant has connected to a room.
|
void |
onParticipantDisconnected(Room room,
RemoteParticipant remoteParticipant)
Called when a participant has disconnected from a room.
|
void |
onRecordingStarted(Room room)
This method is only called when a
Room which was not previously recording starts
recording. |
void |
onRecordingStopped(Room room)
This method is only called when a
Room which was previously recording stops
recording. |
void onConnected(Room room)
room - the connected room.void onConnectFailure(Room room, TwilioException twilioException)
room - the room that failed to be connected to.twilioException - an exception describing why connect failed.void onDisconnected(Room room, TwilioException twilioException)
room - the room that was disconnected from.twilioException - An exception if there was a problem that caused the room to be
disconnected from. This value will be null is there were no problems disconnecting
from the room.void onParticipantConnected(Room room, RemoteParticipant remoteParticipant)
room - the room the participant connected to.remoteParticipant - the newly connected participant.void onParticipantDisconnected(Room room, RemoteParticipant remoteParticipant)
room - the room the participant disconnected from.remoteParticipant - the disconnected participant.void onRecordingStarted(Room room)
Room which was not previously recording starts
recording. If you've joined a Room which is already recording this event will not
be fired.room - 3.0.0-preview2