Class TeamsCallAgent


  • public final class TeamsCallAgent
    extends CommonCallAgent
    Teams Call agent created by the CallClient factory method createTeamsCallAgent. It bears the responsibility of managing calls on behalf of the authenticated user.
    • Method Detail

      • getCalls

        public List<TeamsCall> getCalls()
        Returns the list of all active calls.
      • addOnCallsUpdatedListener

        public void addOnCallsUpdatedListener​(TeamsCallsUpdatedListener listener)
        Adds the specified listener to receive OnCallsUpdated events. CallsUpdated event. Occurs when a new call is created, in case of an incoming call or when an existing call is disconnected.
      • removeOnCallsUpdatedListener

        public void removeOnCallsUpdatedListener​(TeamsCallsUpdatedListener listener)
        Removes the specified listener to receive OnCallsUpdated events. CallsUpdated event. Occurs when a new call is created, in case of an incoming call or when an existing call is disconnected.
      • addOnIncomingCallListener

        public void addOnIncomingCallListener​(TeamsIncomingCallListener listener)
        Adds the specified listener to receive OnIncomingCall events. onIncomingCall Event. Occurs when incoming call is recieved from PushNotification or Trouter.
      • removeOnIncomingCallListener

        public void removeOnIncomingCallListener​(TeamsIncomingCallListener listener)
        Removes the specified listener to receive OnIncomingCall events. onIncomingCall Event. Occurs when incoming call is recieved from PushNotification or Trouter.
      • startCall

        public TeamsCall startCall​(Context context,
                                   CommunicationIdentifier participant,
                                   StartTeamsCallOptions startTeamsCallOptions)
        Initiates outgoing call with list of participants with default call options (audio on, video off).
        Parameters:
        context - Android application context object.
        participant - CommunicationIdentifier participant to call.
        startTeamsCallOptions - call options for the call initiator (video on/off, audio on/off).
        Returns:
        The resulting TeamsCall object.
      • startCall

        public TeamsCall startCall​(Context context,
                                   CommunicationIdentifier participant)
        Initiates outgoing call with list of participants with default call options (audio on, video off).
        Parameters:
        context - Android application context object.
        participant - CommunicationIdentifier participant to call.
        Returns:
        The resulting TeamsCall object.
      • join

        public TeamsCall join​(Context context,
                              JoinTeamsMeetingLocator meetingLocator,
                              JoinTeamsCallOptions joinTeamsCallOptions)
        Join an existing group conversation with the ability to specify call options for the participant joining.
        Parameters:
        context - Android application context object.
        meetingLocator - information of the conversation to join.
        joinTeamsCallOptions - call options for the participant joining the call (video on/off, audio on/off).
        Returns:
        The resulting Call object.
      • join

        public TeamsCall join​(Context context,
                              JoinTeamsMeetingLocator meetingLocator)
        Join an existing group conversation with the ability to specify call options for the participant joining.
        Parameters:
        context - Android application context object.
        meetingLocator - information of the conversation to join.
        Returns:
        The resulting Call object.