Instance Property


The type of media button type to display.


optional var mediaPlayPauseButtonType: UNNotificationContentExtensionMediaPlayPauseButtonType { get }


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

enum UNNotificationContentExtensionMediaPlayPauseButtonType

Constants indicating the type of media button to display.

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.