SinchCallDelegate

public protocol SinchCallDelegate : AnyObject

The delegate of a SinchCall object must adopt the SinchCallDelegate protocol. The required methods handle call state changes.

Call State Progression

For a complete outgoing call, the delegate methods will be called in the following order:

  • callDidProgress:
  • callDidRing:
  • `callDidAnswer:
  • callDidEstablish:
  • callDidEnd:

For a complete incoming call, the delegate methods will be called in the following order, after the client delegate method SinchClientDelegate client:didReceiveIncomingCall: has been called:

  • `callDidAnswer:
  • callDidEstablish:
  • callDidEnd:
  • callDidEnd(_:) Default implementation

    Tells the delegate that the call ended. This method is invoked on the queue specified via SinchRTC.setCallbackQueue(), which defaults to the main queue.

    The call has entered the SinchCall.State.ended state.

    See also

    SinchCall

    Default Implementation

    Declaration

    Swift

    func callDidEnd(_ call: SinchCall)

    Parameters

    call

    The call that ended.

  • callDidProgress(_:) Default implementation

    Tells the delegate that the outgoing call is progressing and a progress tone can be played. This method is invoked on the queue specified via SinchRTC.setCallbackQueue(), which defaults to the main queue.

    The call has entered the SinchCall.State.progressing state.

    See also

    SinchCall

    Default Implementation

    Declaration

    Swift

    func callDidProgress(_ call: SinchCall)

    Parameters

    call

    The outgoing call to the client on the other end.

  • callDidRing(_:) Default implementation

    Tells the delegate that the B side received the call. This method is invoked on the queue specified via SinchRTC.setCallbackQueue(), which defaults to the main queue.

    The call has entered the SinchCall.State.ringing state.

    See also

    SinchCall

    Default Implementation

    Declaration

    Swift

    func callDidRing(_ call: SinchCall)

    Parameters

    call

    The outgoing call to the client on the other end.

  • callDidAnswer(_:) Default implementation

    Tells the delegate that the call was answered. This method is invoked on the queue specified via SinchRTC.setCallbackQueue(), which defaults to the main queue.

    The call has entered the SinchCall.State.answered state.

    See also

    SinchCall

    Default Implementation

    Declaration

    Swift

    func callDidAnswer(_ call: SinchCall)

    Parameters

    call

    The call that was answered.

  • callDidEstablish(_:) Default implementation

    Tells the delegate that the call was established. This method is invoked on the queue specified via SinchRTC.setCallbackQueue(), which defaults to the main queue.

    See also

    SinchCall

    Default Implementation

    Declaration

    Swift

    func callDidEstablish(_ call: SinchCall)

    Parameters

    call

    The call that was established.

  • callDidAddVideoTrack(_:) Default implementation

    Tells the delegate that a video track has been added to the call. A delegate can use SinchVideoController to manage rendering views. This method is invoked on the queue specified via SinchRTC.setCallbackQueue(), which defaults to the main queue.

    Default Implementation

    Declaration

    Swift

    func callDidAddVideoTrack(_ call: SinchCall)
  • callDidPauseVideoTrack(_:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    func callDidPauseVideoTrack(_ call: SinchCall)
  • callDidResumeVideoTrack(_:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    func callDidResumeVideoTrack(_ call: SinchCall)
  • callDidEmitCallQualityEvent(_:event:) Default implementation

    Tells the delegate that the call emitted call quality warning event. This method is invoked on the queue specified via SinchRTC.setCallbackQueue(), which defaults to the main queue.

    See also

    SinchCall

    Default Implementation

    Declaration

    Swift

    func callDidEmitCallQualityEvent(_ call: SinchCall, event: SinchCallQualityWarningEvent)

    Parameters

    call

    The call that emitted event.

    event

    The event emitted during the call.