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?
  • Reports an outgoing call to the system via CallKit

    Declaration

    Swift

    public func reportOutgoingCall(to number: SPNumber, on gateway: SPGateway)
    Parameters
    number

    SPNumber of the recipient of the call

    gateway

    SPGateway that is used for the call

  • Reports an incoming call to the system via CallKit

    Declaration

    Swift

    public func reportIncomingCall(from number: SPNumber, on gateway: SPGateway)
    Parameters
    number

    SPNumber of the calling party

    gateway

    SPGateway that is receiving the call

  • 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
    reason

    A CallEndReason why the call was ended

    gateway

    The SPGateway used for the call

  • Called when the CallKit provider begins

    Declaration

    Swift

    public func providerDidBegin(_ provider: CXProvider)
    Parameters
    provider

    The telephony provider (CXProvider)

  • Called when the CallKit provider is reset

    Declaration

    Swift

    public func providerDidReset(_ provider: CXProvider)
    Parameters
    provider

    The 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
    provider

    The telephony provider (CXProvider)

    action

    The 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
    provider

    The telephony provider (CXProvider)

    action

    The 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
    provider

    The telephony provider (CXProvider)

    action

    The 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
    provider

    The telephony provider (CXProvider)

    action

    The 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
    provider

    The telephony provider (CXProvider)

    action

    The 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
    provider

    The telephony provider (CXProvider)

    action

    The set muted call action

  • Called when the provider’s audio session is activated

    Declaration

    Swift

    public func provider(_ provider: CXProvider, didActivate audioSession: AVAudioSession)
    Parameters
    provider

    The telephony provider (CXProvider)

    audioSession

    The 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
    provider

    The telephony provider (CXProvider)

    audioSession

    The audio session that was deactivated