<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaDevice",
  "identifier" : "/documentation/MediaDevice/MediaOutputDevice/AuthorizationMethod",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Media Device"
    ],
    "preciseIdentifier" : "s:11MediaDevice0a6OutputB0V19AuthorizationMethodV"
  },
  "title" : "MediaOutputDevice.AuthorizationMethod"
}
-->

# MediaOutputDevice.AuthorizationMethod

Specifies what kind of authorization UI to present when connecting to a device.

```
struct AuthorizationMethod
```

## Overview

Use the provided factory methods to create an authorization method appropriate for
your device’s pairing requirements.

## Topics

### Structures

[`struct CodeLength`](/documentation/MediaDevice/MediaOutputDevice/AuthorizationMethod/CodeLength)

Represents the valid lengths for an authorization code.

### Type Properties

[`static var none: MediaOutputDevice.AuthorizationMethod`](/documentation/MediaDevice/MediaOutputDevice/AuthorizationMethod/none)

No authorization is required.

[`static var password: MediaOutputDevice.AuthorizationMethod`](/documentation/MediaDevice/MediaOutputDevice/AuthorizationMethod/password)

Presents a freeform text password input for device authorization.

### Type Methods

[`static func numericCode(length: MediaOutputDevice.AuthorizationMethod.CodeLength) -> MediaOutputDevice.AuthorizationMethod`](/documentation/MediaDevice/MediaOutputDevice/AuthorizationMethod/numericCode(length:))

Creates a numeric PIN entry authorization method.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)