SIGN UP

VIClientCallManagerDelegate

Delegate that may be used to handle incoming calls.

Methods

client:didReceiveIncomingCall:withIncomingVideo:headers:

- (void)client:(VIClient *)client
    didReceiveIncomingCall:(VICall *)call
         withIncomingVideo:(BOOL)video
                   headers:(nullable NSDictionary *)headers

Triggered when there is a new incoming call to current user.

Parameters

  • client:

    VIClient *

    Client instance.

  • call:

    VICall *

    Call instance.

  • video:

    BOOL

    YES if incoming call offers video, NO otherwise.

  • headers:

    nullable NSDictionary *

    Optional headers passed with event.

client:pushDidExpire:

- (void)client:(VIClient *)client
 pushDidExpire:(NSUUID *)callKitUUID

Triggered when previously received VoIP push notification is expired, i.e. [VIClientCallManagerDelegate client:didReceiveIncomingCall:withIncomingVideo:headers:] will not be invoked for the specified callKitUUID.

This method can be used for CallKit integration.

It is recommended to end the CXCall via CXProvider reportCallWithUUID:endedAtDate:reason API on this method invocation.

Parameters

  • client:

    VIClient *

    Client instance.

  • callKitUUID:

    NSUUID *

    CallKit UUID for the incoming call for which the push notification is expired. Always matches the callKitUUID returned from [VIClient handlePushNotification:] API.