An object that uniquely identifies media content in either a single piece or a collection.
- tvOS 9.0–13.0Deprecated
Every content identifier is represented by two parts: a string identifier (
identifier) and a container identifier (
container). The container identifier may be
nil, which indicates that the content lives at the top level of the container hierarchy. You are responsible for organizing your content into a hierarchy and creating identifiers that uniquely identify each piece of content.
When designing your content identifiers, follow this guidance:
A given content identifier must be unique for a particular content item, across all past, current, and future content items, even if the user no longer has access to that item.
The uniqueness of a content identifier comes from the uniqueness of its two parts. The
identifierproperty of a content identifier need not be universally unique across all of the app's content identifiers, as long as items that share the same identifier string are contained in different containers.