Instance Property

mediaPlayPauseButtonTintColor

The tint color for the media playback button.

Declaration

@NSCopying optional var mediaPlayPauseButtonTintColor: UIColor { get }

Discussion

If you implement the mediaPlayPauseButtonFrame property, you can also implement this property and use it to specify the tint color to apply to the button. If you don't implement this property, the system uses a default color for the tint color.

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.

func mediaPlay()

Tells you to begin playback of your media content.

func mediaPause()

Tells you to pause playback of your media content.