RemoteParticipant Class
- java.
lang. Object - com.
azure. android. communication. calling. RemoteParticipant
- com.
public class RemoteParticipant
Describes a remote participant on a call
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
addOnDisplayNameChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes |
void |
addOnIsMutedChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes |
void |
addOnIsSpeakingChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls |
void |
addOnRoleChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes |
void |
addOnStateChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes |
void |
addOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)
Adds the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state |
void |
addOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)
Adds the specified listener to receive OnVideoStreamsUpdated events. |
void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
Call |
getCallEndReason()
Reason why participant left the call, contains code/subcode. |
Call |
getCallParticipantRole()
Role of the remote participant |
String |
getDisplayName()
Private Preview Only: Display Name of the remote participant |
com.azure.android.communication.common.CommunicationIdentifier |
getIdentifier()
Get the remote participant identifier information |
List<Incoming |
getIncomingVideoStreams()
Get a list of incoming streams in the current call. |
Participant |
getState()
Current state of the remote participant |
List<Remote |
getVideoStreams()
Remote Video streams part of the current call |
boolean |
isMuted()
True if the remote participant is muted |
boolean |
isSpeaking()
True if the remote participant is speaking. Only applicable to multi-party calls |
void |
removeOnDisplayNameChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes |
void |
removeOnIsMutedChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes |
void |
removeOnIsSpeakingChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls |
void |
removeOnRoleChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes |
void |
removeOnStateChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes |
void |
removeOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)
Removes the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state |
void |
removeOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)
Removes the specified listener to receive OnVideoStreamsUpdated events. |
Method Details
addOnDisplayNameChangedListener
public void addOnDisplayNameChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes
Parameters:
addOnIsMutedChangedListener
public void addOnIsMutedChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes
Parameters:
addOnIsSpeakingChangedListener
public void addOnIsSpeakingChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls
Parameters:
addOnRoleChangedListener
public void addOnRoleChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes
Parameters:
addOnStateChangedListener
public void addOnStateChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes
Parameters:
addOnVideoStreamStateChangedListener
public void addOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)
Adds the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state
Parameters:
addOnVideoStreamsUpdatedListener
public void addOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)
Adds the specified listener to receive OnVideoStreamsUpdated events.
Parameters:
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
getCallEndReason
public CallEndReason getCallEndReason()
Reason why participant left the call, contains code/subcode.
getCallParticipantRole
public CallParticipantRole getCallParticipantRole()
Role of the remote participant
getDisplayName
public String getDisplayName()
Private Preview Only: Display Name of the remote participant
getIdentifier
public com.azure.android.communication.common.CommunicationIdentifier getIdentifier()
Get the remote participant identifier information
Returns:
getIncomingVideoStreams
public List
Get a list of incoming streams in the current call.
getState
public ParticipantState getState()
Current state of the remote participant
getVideoStreams
public List
Remote Video streams part of the current call
isMuted
public boolean isMuted()
True if the remote participant is muted
isSpeaking
public boolean isSpeaking()
True if the remote participant is speaking. Only applicable to multi-party calls
removeOnDisplayNameChangedListener
public void removeOnDisplayNameChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes
Parameters:
removeOnIsMutedChangedListener
public void removeOnIsMutedChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes
Parameters:
removeOnIsSpeakingChangedListener
public void removeOnIsSpeakingChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls
Parameters:
removeOnRoleChangedListener
public void removeOnRoleChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes
Parameters:
removeOnStateChangedListener
public void removeOnStateChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes
Parameters:
removeOnVideoStreamStateChangedListener
public void removeOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)
Removes the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state
Parameters:
removeOnVideoStreamsUpdatedListener
public void removeOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)
Removes the specified listener to receive OnVideoStreamsUpdated events.
Parameters: