CallKitManagerDelegate
public protocol CallKitManagerDelegate
Delegate Protocol of the CallKitManagerDelegate
-
Called when the user accepts the incoming call from the gateway
Declaration
Parameters
gatewaySPGateway that is operating the call
callerThe calling party (SPNumber)
completionA completion handler that is supposed to be called by the delegate receiver
Return Value
()
-
Called when the outgoing call is connected
Declaration
Parameters
gatewaySPGateway that is operating the call
callerThe calling party (SPNumber)
completionA completion handler that is supposed to be called by the delegate receiver
Return Value
()
-
Called when the incoming call is declined
Declaration
Swift
func callKitManager(didDeclineIncomingCallFromGateway gateway: SPGateway, withRecentCallItem recentItem: SPRecentCall, completion: @escaping (_ success: Bool) -> Void)Parameters
gatewaySPGateway that is operating the call
recentItemA SPRecentCall object representing inforamtion about the call
completionA completion handler that is supposed to be called by the delegate receiver
Return Value
()
-
Called when the call is ended
Declaration
Swift
func callKitManager(didEndCallFromGateway gateway: SPGateway, withRecentCallItem recentItem: SPRecentCall, completion: @escaping (_ success: Bool) -> Void)Parameters
gatewaySPGateway that is operating the call
recentItemA SPRecentCall object representing inforamtion about the call
completionA completion handler that is supposed to be called by the delegate receiver
Return Value
()
-
Called when the calls held state is changed
Declaration
Swift
func callKitManager(didChangeHeldState isOnHold: Bool, onCallFrom gateway: SPGateway, completion: @escaping (_ success: Bool) -> Void)Parameters
isOnHoldBoolean indicating the held state (true = held)
gatewaySPGateway that is operating the call
completionA completion handler that is supposed to be called by the delegate receiver
Return Value
()
-
Called when the calls muting state is changed
Declaration
Swift
func callKitManager(didChangeMuteState isMuted: Bool, onCallFrom gateway: SPGateway, completion: @escaping (_ success: Bool) -> Void)Parameters
isMutedBoolean indicating the mute state (true = muted)
gatewaySPGateway that is operating the call
completionA completion handler that is supposed to be called by the delegate receiver
Return Value
()
-
Called when the caller sends out DTMF tones
Declaration
Swift
func callKitManager(didEnterDTMF digits: String, onCallFrom gateway: SPGateway, completion: @escaping (_ success: Bool) -> Void)Parameters
digitsDTMF digits to be send
gatewaySPGateway that is operating the call
completionA completion handler that is supposed to be called by the delegate receiver
CallKitManagerDelegate Protocol Reference