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.endedstate.See also
Default Implementation
Declaration
Swift
func callDidEnd(_ call: SinchCall)Parameters
callThe 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.progressingstate.See also
Default Implementation
Declaration
Swift
func callDidProgress(_ call: SinchCall)Parameters
callThe 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.ringingstate.See also
Default Implementation
Declaration
Swift
func callDidRing(_ call: SinchCall)Parameters
callThe 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.answeredstate.See also
Default Implementation
Declaration
Swift
func callDidAnswer(_ call: SinchCall)Parameters
callThe 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
Default Implementation
Declaration
Swift
func callDidEstablish(_ call: SinchCall)Parameters
callThe call that was established.
-
callDidAddVideoTrack(_:Default implementation) Tells the delegate that a video track has been added to the call. A delegate can use
SinchVideoControllerto manage rendering views. This method is invoked on the queue specified viaSinchRTC.setCallbackQueue(), which defaults to the main queue.See also
SinchVideoControllerDefault 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(_:Default implementationevent: ) 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
Default Implementation
Declaration
Swift
func callDidEmitCallQualityEvent(_ call: SinchCall, event: SinchCallQualityWarningEvent)Parameters
callThe call that emitted event.
eventThe event emitted during the call.