numericCode(length:)
Creates a numeric PIN entry authorization method.
Declaration
static func numericCode(length: MediaOutputDevice.AuthorizationMethod.CodeLength) -> MediaOutputDevice.AuthorizationMethodParameters
- length:
The number of digit fields presented in the pairing UI.
Mentioned in
Discussion
The system presents a UI with individual digit fields for the user to enter a numeric code when connecting to the device.
// Present a 4-digit PIN entry UI
let auth = AuthorizationMethod.numericCode(length: .fourCharacter)