performRequests(_:options:)
Performs an authorization request, with explicit options, from the provided array.
Declaration
@MainActor func performRequests(_ requests: [ASAuthorizationRequest], options: ASAuthorizationController.RequestOptions) async throws -> ASAuthorizationResultParameters
- requests:
An array of supported authorization requests.
- options:
Additional options that customize the request’s behavior. For more information, see Requestoptions.
Return Value
The request’s outcome. For more information, see ASAuthorizationResult.
Discussion
The framework checks each authorization request in the array against the credentials available on the person’s device; the more credential types your app supports, the more options a person can choose from.