Constants indicating the type of media button to display.


enum UNNotificationContentExtensionMediaPlayPauseButtonType : UInt


Button Types

case none

No media button.

case `default`

A standard play/pause button.

case overlay

A partially transparent play/pause button that is layered on top of your media content.

See Also

Supporting Media Playback

var mediaPlayPauseButtonFrame: CGRect

The frame rectangle to use for displaying a media playback button.

var mediaPlayPauseButtonTintColor: UIColor

The tint color for the media playback button.

func mediaPlay()

Tells you to begin playback of your media content.

func mediaPause()

Tells you to pause playback of your media content.