UnbluIncomingCallDelegate
protocol UnbluIncomingCallDelegate : AnyObject
Informs the host application when an incoming call is accepted or declined.
The delegate is assigned on the UnbluNotificationApi.instance singleton and is invoked
directly from the CallKit/PushKit callbacks. It therefore works even before the SDK is
initialized (no client and no UnbluView are required), e.g. right after a cold launch.
Assign the delegate early, typically in application(_:didFinishLaunchingWithOptions:):
UnbluNotificationApi.instance.incomingCallDelegate = self
-
Called when the user accepts an incoming call from the native CallKit UI.
Declaration
Swift
func unbluNotificationApi(_ api: UnbluNotificationApi, didAcceptIncomingCallFor conversationId: String, callType: String, caller: String)Parameters
apiThe
UnbluNotificationApiinstance.callTypeThe type of the call (“VIDEO” for video calls, otherwise audio-only).
callerThe display name or phone number of the caller.
-
Called when the user declines an incoming call before it was accepted (or it timed out).
Declaration
Swift
func unbluNotificationApi(_ api: UnbluNotificationApi, didDeclineIncomingCallFor conversationId: String)Parameters
apiThe
UnbluNotificationApiinstance.