UserKeySelector
public protocol UserKeySelector : Sendable
A protocol for collecting user key selection when multiple keys are available. Conforming types can provide custom UI for selecting from multiple bound device keys.
-
selectKey(userKeys:Asynchronousprompt: ) Prompts the user to select a key from the available options.
Parameters
userKeysAn array of available user keys to choose from.
promptThe prompt information to display to the user.
Return Value
The selected UserKey, or nil if the user cancels.
View on GitHub