Contents

authorizationController(controller:didCompleteWithError:)

Tells the delegate when authorization fails, and provides an error explaining why.

Declaration

optional func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: any Error)

Parameters

  • controller:

    The controller that performs the authorization attempt.

  • error:

    An error that explains the failure using one of the codes in Code.

Mentioned in

See Also

Handling Authorization Errors