---
title: "init(identifier:title:type:artwork:artist:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inmediaitem/init(identifier:title:type:artwork:artist:)"
---

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

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

## Declaration

```swift
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

Return Value A newly initialized media item object.

## See Also

### Creating a Media Item

- [init(identifier:title:type:artwork:)](intents/inmediaitem/init(identifier:title:type:artwork:).md)
