---
title: mediaPlayPauseButtonType
framework: usernotificationsui
role: symbol
role_heading: Instance Property
path: usernotificationsui/unnotificationcontentextension/mediaplaypausebuttontype
---

# mediaPlayPauseButtonType

The type of media button type to display.

## Declaration

```swift
optional var mediaPlayPauseButtonType: UNNotificationContentExtensionMediaPlayPauseButtonType { get }
```

## Mentioned in

Customizing the Appearance of Notifications

## Discussion

Discussion Implement this property when you want the system to display a media playback button in your notification interface. Return an appropriate constant indicating the type of button you want. If you don’t implement this property, the system behaves as if you set the value to UNNotificationContentExtensionMediaPlayPauseButtonType.none.

## See Also

### Supporting Media Playback

- [UNNotificationContentExtensionMediaPlayPauseButtonType](usernotificationsui/unnotificationcontentextensionmediaplaypausebuttontype.md)
- [mediaPlayPauseButtonFrame](usernotificationsui/unnotificationcontentextension/mediaplaypausebuttonframe.md)
- [mediaPlayPauseButtonTintColor](usernotificationsui/unnotificationcontentextension/mediaplaypausebuttontintcolor.md)
- [mediaPlay()](usernotificationsui/unnotificationcontentextension/mediaplay().md)
- [mediaPause()](usernotificationsui/unnotificationcontentextension/mediapause().md)
