<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMMediaSourceDisplayOrderProfile",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:@M@HomeKit@objc(cs)HMMediaSourceDisplayOrderProfile"
  },
  "title" : "HMMediaSourceDisplayOrderProfile"
}
-->

# HMMediaSourceDisplayOrderProfile

An interface from which to read and, if allowed by the accessory, update the ordering of input sources.

```
@objc class HMMediaSourceDisplayOrderProfile
```

## Overview

This class represents a media source display that orders functionality for the [`HMServiceTypeTelevision`](/documentation/HomeKit/HMServiceTypeTelevision) service contained in the services array of the profile.

## Topics

### Managing input source order

[`func writeOrder([Int]) async throws`](/documentation/HomeKit/HMMediaSourceDisplayOrderProfile/writeOrder(_:))

Writes the display order of the media sources to the accessory.

[`var delegate: (any HMMediaSourceDisplayOrderProfile.Delegate)?`](/documentation/HomeKit/HMMediaSourceDisplayOrderProfile/delegate-swift.property)

The property that handles updates to the display order.

[`var order: [Int]`](/documentation/HomeKit/HMMediaSourceDisplayOrderProfile/order)

The display order of input media sources.

[`let canModifyOrder: Bool`](/documentation/HomeKit/HMMediaSourceDisplayOrderProfile/canModifyOrder)

A Boolean that indicates if the display order of the input media sources can be modified.

[`protocol Delegate`](/documentation/HomeKit/HMMediaSourceDisplayOrderProfile/Delegate-swift.protocol)

The protocol through which a delegate receives updates on the order of input media sources.

## Relationships

### Conforms To

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

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

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

### Inherits From

[`HMAccessoryProfile`](/documentation/HomeKit/HMAccessoryProfile)

---

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)