requestAuthorization(for:)
Requests authorization from a person to generate evaluations.
Declaration
final nonisolated(nonsending) func requestAuthorization<each I>(for context: InsightEvaluator.InsightContext<repeat each I>) async throws -> InsightEvaluator.AuthorizationStatus where repeat each I : InsightEvaluator.InsightRequestProtocolParameters
- context:
The Insightcontext to request authorization for.
Return Value
The InsightEvaluator.AuthorizationStatus after a person has made their decision.
Discussion
The method doesn’t return until the UI interaction is complete and a person has made a selection as to whether to allow access to insights.
If access is already available, it returns immediately.