---
title: MediaOutputDevice.AuthorizationMethod.CodeLength
framework: mediadevice
role: symbol
role_heading: Structure
path: mediadevice/mediaoutputdevice/authorizationmethod/codelength
---

# MediaOutputDevice.AuthorizationMethod.CodeLength

Represents the valid lengths for an authorization code.

## Declaration

```swift
struct CodeLength
```

## Overview

Overview Use one of the provided static properties to specify the length of an authorization code.

## Topics

### Type Properties

- [fourCharacter](mediadevice/mediaoutputdevice/authorizationmethod/codelength/fourcharacter.md)
- [sixCharacter](mediadevice/mediaoutputdevice/authorizationmethod/codelength/sixcharacter.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
