<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INMediaDestinationReference",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INMediaDestination"
  },
  "title" : "INMediaDestinationReference"
}
-->

# INMediaDestinationReference

An object that describes the destination for a media item.

```
class INMediaDestinationReference
```

## Topics

### Creating a Media Destination Object

[`class func library() -> Self`](/documentation/Intents/INMediaDestinationReference/library())

Creates a new library destination for the media item.

[`class func playlistDestination(withName: String) -> Self`](/documentation/Intents/INMediaDestinationReference/playlistDestination(withName:))

Creates a new playlist destination for the media item.

### Describing the Media Destination

[`var playlistName: String?`](/documentation/Intents/INMediaDestinationReference/playlistName)

The name of the playlist to which you add the media.

[`var mediaDestinationType: INMediaDestinationType`](/documentation/Intents/INMediaDestinationReference/mediaDestinationType)

The destination of the media your app adds.

[`enum INMediaDestinationType`](/documentation/Intents/INMediaDestinationType)

Constants that describe the different media destination types.

### Initializers

[`init?(coder: NSCoder)`](/documentation/Intents/INMediaDestinationReference/init(coder:))

## Relationships

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSCoding`](/documentation/Foundation/NSCoding)

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

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

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

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)