SINCallDelegate
Objective-C
@protocol SINCallDelegate <SINExperimentalCallDelegate>
Swift
protocol SINCallDelegate
The delegate of a SINCall object must adopt the SINCallDelegate 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:
callDidEstablish:
callDidEnd:
For a complete incoming call, the delegate methods will be called
in the following order, after the client delegate method
[SINClientDelegate client:didReceiveIncomingCall:]
has been called:
callDidEstablish:
callDidEnd:
-
Tells the delegate that the call ended.
The call has entered the
SINCallStateEnded
state. This method is invoked on the queue specified via-[Sinch setCallbackQueue:]
, which defaults to the main queue.See
Declaration
Objective-C
- (void)callDidEnd:(id<SINCall>)call;
Swift
optional func callDidEnd(_ call: SINCall!)
Parameters
call
The call that ended.
-
Tells the delegate that the outgoing call is progressing and a progress tone can be played.
The call has entered the
SINCallStateProgressing
state. This method is invoked on the queue specified via-[Sinch setCallbackQueue:]
, which defaults to the main queue.See
Declaration
Objective-C
- (void)callDidProgress:(id<SINCall>)call;
Swift
optional func callDidProgress(_ call: SINCall!)
Parameters
call
The outgoing call to the client on the other end.
-
Tells the delegate that the call was established.
The call has entered the
SINCallStateEstablished
state. This method is invoked on the queue specified via-[Sinch setCallbackQueue:]
, which defaults to the main queue.See
Declaration
Objective-C
- (void)callDidEstablish:(id<SINCall>)call;
Swift
optional func callDidEstablish(_ call: SINCall!)
Parameters
call
The call that was established.
-
Tells the delegate that a video track has been added to the call. A delegate can use
SINVideoController
to manage rendering views. This method is invoked on the queue specified via-[Sinch setCallbackQueue:]
, which defaults to the main queue. -
Tells the delegate that a video track has been paused in the call. A delegate can use
SINVideoController
to manage rendering views. This method is invoked on the queue specified via-[Sinch setCallbackQueue:]
, which defaults to the main queue. -
Tells the delegate that a video track has been resumed in the call. (A delegate can use
SINVideoController
to manage rendering views.) This method is invoked on the queue specified via-[Sinch setCallbackQueue:]
, which defaults to the main queue.