requestAuthorization(for:)
Requests authorization for the given input capabilities, prompting the user for any capability whose status is Notdetermined.
Declaration
@MainActor final func requestAuthorization(for inputCapabilities: Set<FoveatedStreamingSession.InputCapability>? = nil) async -> [FoveatedStreamingSession.InputCapability : FoveatedStreamingSession.AuthorizationStatus]Parameters
- inputCapabilities:
The capabilities to authorize. When
nil(the default), the session’s Requestedinputcapabilities are used.
Return Value
A dictionary mapping each requested capability to its authorization status following the prompt.
Discussion
Use this method to drive authorization prompts ahead of connect(endpoint:) so apps that want to surface their own pre-flight UI can do so. At connect(endpoint:) time the framework also calls this method automatically for requestedInputCapabilities.