Instance Method

reportNewIncomingCall(with:update:completion:)

Reports a new incoming call with the specified unique identifier to the provider.

Declaration

func reportNewIncomingCall(with UUID: UUID, update: CXCallUpdate, completion: @escaping (Error?) -> Void)

Parameters

UUID

The unique identifier of the call.

update

The information for the call.

completion

A block to be executed once the call is allowed or disallowed by the system. The block is executed on the delegate queue set by the setDelegate(_:queue:) method, or on a private serial queue if none is specified.

error

If an error occurred, an error object indicating that the call was disallowed by the system, otherwise nil.

Discussion

An incoming call may be disallowed by the system if, for example, the caller handle is blocked, or the user has Do Not Disturb enabled.

See Also

Reporting Calls

func reportOutgoingCall(with: UUID, startedConnectingAt: Date?)

Reports to the provider that an outgoing call with the specified unique identifier started connecting at a particular time.

func reportOutgoingCall(with: UUID, connectedAt: Date?)

Reports to the provider that an outgoing call with the specified unique identifier finished connecting at a particular time.

func reportCall(with: UUID, updated: CXCallUpdate)

Reports to the provider that an active call updated its information.

func reportCall(with: UUID, endedAt: Date?, reason: CXCallEndedReason)

Reports to the provider that a call with the specified identifier ended at a given date for a particular reason.