Contents

performRequest(_:customMethods:)

Performs the authorization request using a custom authorization method.

Declaration

@MainActor func performRequest(_ request: ASAuthorizationRequest, customMethods: [ASAuthorizationCustomMethod]) async throws -> ASAuthorizationResult

Parameters

  • request:

    The authorization request to perform.

  • customMethods:

    An array of custom authorization methods to display in the system authorization UI. For more information, see Asauthorizationcustommethod.

Return Value

The request’s outcome. For more information, see ASAuthorizationResult.

Discussion

If the return value is ASAuthorizationResult.customMethod(_:), use the case’s associated value to access the chosen authorization method.

See Also

Performing requests