Initializer

init(identifier:)

Sets the identifier for a media item.

Declaration

init(identifier: String)

Parameters

identifier

A unique identifier for the content item.

Return Value

The created MPContentItem object.

Discussion

Each media item identifier must be unique. The use of nonunique identifiers can prevent media items from updating properly. Create a new identifier when creating an MPContentItem object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software