<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotificationsUI",
  "identifier" : "/documentation/UserNotificationsUI/UNNotificationContentExtension/mediaPlayPauseButtonType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "User Notifications UI"
    ],
    "preciseIdentifier" : "c:objc(pl)UNNotificationContentExtension(py)mediaPlayPauseButtonType"
  },
  "title" : "mediaPlayPauseButtonType"
}
-->

# mediaPlayPauseButtonType

The type of media button type to display.

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

## 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`](/documentation/UserNotificationsUI/UNNotificationContentExtensionMediaPlayPauseButtonType/none).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)