-
- All Implemented Interfaces:
public interface SessionEventListenerGeneral listener to for events happening during session All callbacks are executed on Main Thread
-
-
Method Summary
Modifier and Type Method Description UnitonParticipantJoined(Participant participant)Notifies about new participant joined the call. UnitonParticipantLeft(Participant participant)Notifies about participant disconnecting the call. UnitonParticipantVideoCreated(Participant participant, VideoElement video)Notifies about remote participant started new video stream UnitonParticipantVideoStopped(Participant participant, ScreenMeet.VideoSource source)Notifies about remote participant stopped his video stream UnitonParticipantAudioCreated(Participant participant)Notifies about remote participant started new audio stream UnitonParticipantAudioStopped(Participant participant)Notifies about remote participant stopped his audio stream UnitonActiveSpeakerChanged(Participant participant, VideoElement video)Called when Participant marked as active by server. UnitonLocalVideoCreated(ScreenMeet.VideoSource source, VideoElement video)Used as a success callback when a local video source started sharing UnitonLocalVideoStopped(ScreenMeet.VideoSource source)Used when a local video source stopped sharing or notifies about failed attempt to share UnitonLocalAudioCreated()Used as a success callback when a local audio source started sharing UnitonLocalAudioStopped()Used when a local video source stopped sharing or notifies about failed attempt to share UnitonConnectionStateChanged(ScreenMeet.ConnectionState newState)Called when session connection state changed UnitonChatMessage(ChatMessage chatMessage)Notifies about new message received from server or own message delivery status update UnitonFeatureRequest(Feature feature, Function1<Boolean, Unit> decisionHandler)Called when entitlement requested UnitonFeatureRequestRejected(Entitlement entitlement)Called when previous request was rejected UnitonFeatureStarted(Feature feature)Called when certain feature (you approved) starts its activity (remote control, laser pointer) UnitonFeatureStopped(Feature feature)Called when entitlement stopped -
-
Method Detail
-
onParticipantJoined
Unit onParticipantJoined(Participant participant)
Notifies about new participant joined the call.
- Parameters:
participant-Participant details with audio/video tracks
-
onParticipantLeft
Unit onParticipantLeft(Participant participant)
Notifies about participant disconnecting the call.
- Parameters:
participant-Participant details with audio/video tracks
-
onParticipantVideoCreated
Unit onParticipantVideoCreated(Participant participant, VideoElement video)
Notifies about remote participant started new video stream
- Parameters:
participant-latest state of Participant with details and audio/video tracks
video-VideoTrack wrapper for UI presentation
-
onParticipantVideoStopped
Unit onParticipantVideoStopped(Participant participant, ScreenMeet.VideoSource source)
Notifies about remote participant stopped his video stream
- Parameters:
participant-latest state of Participant with details and audio/video tracks
source-VideoSource which was stopped
-
onParticipantAudioCreated
Unit onParticipantAudioCreated(Participant participant)
Notifies about remote participant started new audio stream
- Parameters:
participant-latest state of Participant with details and audio/video tracks
-
onParticipantAudioStopped
Unit onParticipantAudioStopped(Participant participant)
Notifies about remote participant stopped his audio stream
- Parameters:
participant-latest state of Participant with details and audio/video tracks
-
onActiveSpeakerChanged
Unit onActiveSpeakerChanged(Participant participant, VideoElement video)
Called when Participant marked as active by server. Usually when somebody starts screen share
- Parameters:
participant-Participant details with audio/video tracks
video-VideoTrack wrapper for UI presentation
-
onLocalVideoCreated
Unit onLocalVideoCreated(ScreenMeet.VideoSource source, VideoElement video)
Used as a success callback when a local video source started sharing
- Parameters:
source- : specifies VideoSource type (camera/screen/annotation)video-Can be used to preview local video.
-
onLocalVideoStopped
Unit onLocalVideoStopped(ScreenMeet.VideoSource source)
Used when a local video source stopped sharing or notifies about failed attempt to share
- Parameters:
source- : specifies VideoSource type (camera/screen/annotation)
-
onLocalAudioCreated
Unit onLocalAudioCreated()
Used as a success callback when a local audio source started sharing
-
onLocalAudioStopped
Unit onLocalAudioStopped()
Used when a local video source stopped sharing or notifies about failed attempt to share
-
onConnectionStateChanged
Unit onConnectionStateChanged(ScreenMeet.ConnectionState newState)
Called when session connection state changed
- Parameters:
newState-session Connection state (Disconnected/Connecting/Connected/Reconnecting).
-
onChatMessage
Unit onChatMessage(ChatMessage chatMessage)
Notifies about new message received from server or own message delivery status update
-
onFeatureRequest
Unit onFeatureRequest(Feature feature, Function1<Boolean, Unit> decisionHandler)
Called when entitlement requested
- Parameters:
feature- : Feature being requested.decisionHandler- : The callback called after request is accepted or denied
-
onFeatureRequestRejected
Unit onFeatureRequestRejected(Entitlement entitlement)
Called when previous request was rejected
- Parameters:
entitlement- : Entitlement request that has been rejected.
-
onFeatureStarted
Unit onFeatureStarted(Feature feature)
Called when certain feature (you approved) starts its activity (remote control, laser pointer)
- Parameters:
feature- : Feature that has stated
-
onFeatureStopped
Unit onFeatureStopped(Feature feature)
Called when entitlement stopped
- Parameters:
feature- : Feature that has been stopped
-
-
-
-