---
title: collectionID
framework: nowplaying
role: symbol
role_heading: Instance Property
path: nowplaying/mediacontentrepresentable/collectionid
---

# collectionID

An opaque identifier for the collection this content belongs to, such as an album, playlist, or podcast show.

## Declaration

```swift
var collectionID: String? { get set }
```

## Discussion

Discussion The system uses this identifier to group related content and to ask the app to resume playback of the collection. For example, this could be an album identifier for a song, a show identifier for a podcast episode, or a playlist identifier.
