Interface Call

  • All Implemented Interfaces:

    
    public interface Call
    
                        

    Call object acts as a handler for managing a connection between call participants, accessing details such as start time, state and possible errors. It also allows to attach listeners to be notified about changes in it's lifecycle.

    • Constructor Detail

    • Method Detail

      • answer

         abstract Unit answer()

        Answers the incoming call.

      • hangup

         abstract Unit hangup()

        Ends the call, regardless of what state it is in. If the call is an incoming call that has not yet been answered, the call will be reported as denied to the caller.

      • sendDTMF

         abstract Unit sendDTMF(String keys)

        Sends one or more DTMF tones for tone dialing. (Only applicable for calls terminated to PSTN (Publicly Switched Telephone Network)).

        Parameters:
        keys - May be a series of DTMF keys.
      • setBandwidthLimits

         abstract Unit setBandwidthLimits(Integer maxAudioBitrate, Integer maxVideoBitrate)

        Sets bandwidth limitations on negotiated media streams. Bitrate settings should be non-negative integers values in kbps. Setting bitrate to zero forces use of default values. Settings take effect only if applied before call starts.

        Parameters:
        maxAudioBitrate - Max audio bitrate in kbps.
        maxVideoBitrate - Max video bitrate in kbps.
      • getCallId

         abstract String getCallId()

        The call identifier.

        For a call placed with one of the CallController.dial methods the identifier is assigned by the Sinch platform, so it is empty until the platform has accepted or rejected the dial.

      • getRemoteUserId

         abstract String getRemoteUserId()

        The identifier of the remote participant of the call.

      • getDisplayName

         abstract String getDisplayName()

        The display name of the remote participant, if provided via push notification payload. Null for outgoing calls or if not included in the push notification payload.