CallKitManager
public class CallKitManager : NSObject
Manager used to interact with CallKit
-
Shared instance of the CallKitManager
Declaration
Swift
public static let shared: CallKitManager -
Reference to the class that implemented the delegate protocol
Declaration
Swift
public var delegate: CallKitManagerDelegate? -
Enum representing a reason why the call ended
Declaration
Swift
public enum CallEndReason -
Reports to the system (CallKit) that the call was ended
Declaration
Swift
public func reportCallEnded(because reason: CallEndReason, on gateway: SPGateway)Parameters
reasonA CallEndReason why the call was ended
gatewayThe SPGateway used for the call
-
Called when the CallKit provider begins
Declaration
Swift
public func providerDidBegin(_ provider: CXProvider)Parameters
providerThe telephony provider (CXProvider)
-
Called when the CallKit provider is reset
Declaration
Swift
public func providerDidReset(_ provider: CXProvider)Parameters
providerThe telephony provider (CXProvider)
-
Called when the CallKit provider performs the specified answer call action
Declaration
Swift
public func provider(_ provider: CXProvider, perform action: CXAnswerCallAction)Parameters
providerThe telephony provider (CXProvider)
actionThe answer call action
-
Called when the CallKit provider performs the specified end call action
Declaration
Swift
public func provider(_ provider: CXProvider, perform action: CXEndCallAction)Parameters
providerThe telephony provider (CXProvider)
actionThe end call action
-
Called when the CallKit provider performs the specified start call action
Declaration
Swift
public func provider(_ provider: CXProvider, perform action: CXStartCallAction)Parameters
providerThe telephony provider (CXProvider)
actionThe start call action
-
Called when the CallKit provider performs the specified set held call action
Declaration
Swift
public func provider(_ provider: CXProvider, perform action: CXSetHeldCallAction)Parameters
providerThe telephony provider (CXProvider)
actionThe set held call action
-
Called when the provider performs the specified play DTMF (dual tone multifrequency) call action
Declaration
Swift
public func provider(_ provider: CXProvider, perform action: CXPlayDTMFCallAction)Parameters
providerThe telephony provider (CXProvider)
actionThe play DTMF call action
-
Called when the provider performs the specified set muted call action
Declaration
Swift
public func provider(_ provider: CXProvider, perform action: CXSetMutedCallAction)Parameters
providerThe telephony provider (CXProvider)
actionThe set muted call action
-
Called when the provider’s audio session is activated
Declaration
Swift
public func provider(_ provider: CXProvider, didActivate audioSession: AVAudioSession)Parameters
providerThe telephony provider (CXProvider)
audioSessionThe audio session that was activated
-
Called when the provider’s audio session is deactivated
Declaration
Swift
public func provider(_ provider: CXProvider, didDeactivate audioSession: AVAudioSession)Parameters
providerThe telephony provider (CXProvider)
audioSessionThe audio session that was deactivated
CallKitManager Class Reference