Contents

performRequests()

Starts the specified authorization flows during controller initialization.

Declaration

func performRequests()

Mentioned in

Discussion

When authorization succeeds, the system relays that information to the controller’s delegate by calling the authorizationController(controller:didCompleteWithAuthorization:) method with an authorization instance. If authorization fails, the system calls the authorizationController(controller:didCompleteWithError:) method instead.

Some authorization flows require a presentation context to ask the user for information or consent. Adopt the ASAuthorizationControllerPresenting protocol in one of your app’s classes, and set an instance of that class as the authorization controller’s presentationController.

See Also

Executing requests