Contents

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  @Sendable ((any Error)?) -> Void)
func reportNewIncomingCall(with UUID: UUID, update: CXCallUpdate) async throws

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.

Mentioned in

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