Contents

completeRequest(completionHandler:)

Completes the request to the extension context.

Declaration

func completeRequest(completionHandler completion: (@Sendable (Bool) -> Void)? = nil)
func completeRequest() async -> Bool

Parameters

  • completion:

    A block to be executed after the request to the extension context is completed.

    expired

    Whether the receiver expired during the request.

    If True, then any identification or blocking entries added by the extension context were not added to the extension.

Discussion

Call this method on the instance of CXCallDirectoryExtensionContext passed as an argument to the block parameter of the CXCallDirectoryProvider instance method beginRequest(with:). This method should be called once at the end of the block.

See Also

Completing Requests