<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INMediaItem/init(identifier:title:type:artwork:artist:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INMediaItem(im)initWithIdentifier:title:type:artwork:artist:"
  },
  "title" : "init(identifier:title:type:artwork:artist:)"
}
-->

# init(identifier:title:type:artwork:artist:)

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

```
init(identifier: String?, title: String?, type: INMediaItemType, artwork: INImage?, artist: String?)
```

## Parameters

`identifier`

The value your app uses to identify the media item.

`title`

The media title.

`type`

The media type.

`artwork`

An image that represents a media item such as an album cover.

`artist`

A string identifying the artist for the media item.

## Return Value

A newly initialized media item object.

---

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)