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

# delegate

The Now Playing session’s delegate object.

## Declaration

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

## See Also

### Accessing the delegate object

- [MPNowPlayingSessionDelegate](mediaplayer/mpnowplayingsessiondelegate.md)
