CallKitManagerDelegate

public protocol CallKitManagerDelegate

Delegate Protocol of the CallKitManagerDelegate

  • Called when the user accepts the incoming call from the gateway

    Declaration

    Swift

    func callKitManager(didAcceptIncomingCallFromGateway gateway: SPGateway, with caller: SPNumber, completion: @escaping (_ success: Bool) -> Void)
    Parameters
    gateway

    SPGateway that is operating the call

    caller

    The calling party (SPNumber)

    completion

    A completion handler that is supposed to be called by the delegate receiver

    Return Value

    ()

  • Called when the outgoing call is connected

    Declaration

    Swift

    func callKitManager(didConnectOutgoingCallFromGateway gateway: SPGateway, with caller: SPNumber, completion: @escaping (_ success: Bool) -> Void)
    Parameters
    gateway

    SPGateway that is operating the call

    caller

    The calling party (SPNumber)

    completion

    A 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
    gateway

    SPGateway that is operating the call

    recentItem

    A SPRecentCall object representing inforamtion about the call

    completion

    A 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
    gateway

    SPGateway that is operating the call

    recentItem

    A SPRecentCall object representing inforamtion about the call

    completion

    A 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
    isOnHold

    Boolean indicating the held state (true = held)

    gateway

    SPGateway that is operating the call

    completion

    A 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
    isMuted

    Boolean indicating the mute state (true = muted)

    gateway

    SPGateway that is operating the call

    completion

    A 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
    digits

    DTMF digits to be send

    gateway

    SPGateway that is operating the call

    completion

    A completion handler that is supposed to be called by the delegate receiver