---
title: delegate
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpplayablecontentmanager/delegate
---

# delegate

A delegate that lets the media player manage the app’s playback queue.

## Declaration

```swift
weak var delegate: (any MPPlayableContentDelegate)? { get set }
```

## Discussion

Discussion The delegate responds to external events that trigger a change in the media item that’s playing. An example of such an event would be choosing to play a song from a different album, or requesting suggested content to play next. The app must be able to respond to these events at any time. To instead respond to events that affect the playback state of the currently playing item, use the MPRemoteCommandEvent class.

## See Also

### Responding to playback events

- [MPPlayableContentDelegate](mediaplayer/mpplayablecontentdelegate.md)
