Contents

MPPlayableContentManager

A shared content manager for controlling interactions between your media app and system-provided or external media player interfaces.

Declaration

class MPPlayableContentManager

Overview

The app provides data to the content manager so that the media player can browse the content provided. A delegate provides the media player the ability to perform actions that manage the app’s playback queue.

You don’t create a new content manager directly, instead you grab the shared content manager using the shared() method. After getting the shared content manager, your next step depends on the features your app supports:

  • To provide content navigation and suggested content for CarPlay, immediately set both the dataSource and delegate properties. After setting these properties, use the beginUpdates() and endUpdates() methods to load the information from the data source.

  • To provide suggested content when the user connects headphones, a Bluetooth stereo, or another output device, set only the delegate property. After you set a delegate, iOS automatically calls methods in the MPPlayableContentDelegate protocol allowing you to suggest appropriate content.

Topics

Providing playable content

Responding to playback events

Setting the content manager

Updating data

Retrieving information on currently playing items

See Also

Deprecated symbols