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

# INMediaItem

An object that describes a piece of media content, such as a song, TV show, artist, or podcast playlist.

```
class INMediaItem
```

## Topics

### Creating a Media Item

[`convenience init(identifier: String?, title: String?, type: INMediaItemType, artwork: INImage?)`](/documentation/Intents/INMediaItem/init(identifier:title:type:artwork:))

Creates a media item with an identifier, title, type, and artwork.

[`init(identifier: String?, title: String?, type: INMediaItemType, artwork: INImage?, artist: String?)`](/documentation/Intents/INMediaItem/init(identifier:title:type:artwork:artist:))

Creates a media item with an identifier, title, type, artwork, and artist.

### Describing the Media Item

[`var artwork: INImage?`](/documentation/Intents/INMediaItem/artwork)

Artwork for the media item.

[`var identifier: String?`](/documentation/Intents/INMediaItem/identifier)

The value your app uses to identify the media item.

[`var title: String?`](/documentation/Intents/INMediaItem/title)

The media item title.

[`var artist: String?`](/documentation/Intents/INMediaItem/artist)

The artist associated with the media item.

[`var type: INMediaItemType`](/documentation/Intents/INMediaItem/type)

The media item type.

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

The type of content the media item describes.

### Initializers

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

### 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)