OpenSettingsUserInteractionDelegate
public protocol OpenSettingsUserInteractionDelegate : AnyObject
The OpenSettingsUserInteractionDelegate
describes the methods that FIDO components call on their delegate to handle user interaction during OpenSettings
operations.
-
Informs the delegate about available authenticator operations that can be performed using authenticator settings.
Declaration
Swift
func selectOpenSettingsOperation(_ context: AuthenticatorOperationSelection.Context, completion handler: @escaping (Result<AuthenticatorOperationSelection.Outcome, Error>) -> ())
Parameters
context
An object that contains information about the available authenticator setting operations.
handler
A handler that the delegate method must call. The handler contains a single argument that represents either a successful result with the action result or a failure result with an error.
-
Informs the delegate about the selected authenticator operation and asks for the new settings to be performed.
Declaration
Swift
func openSettings(_ context: OpenSettings.Context, completion handler: @escaping (Result<OpenSettings.Outcome, Error>) -> ())
Parameters
context
An object that contains information about the available actions.
handler
A handler that the delegate method must call. The handler contains a single argument that represents either a successful result with the action result or a failure result with an error.