Instance Method

mediaPlay()

Tells you to begin playback of your media content.

Declaration

optional func mediaPlay()

Discussion

Don't call this method yourself. If you implement the mediaPlayPauseButtonFrame property in your view controller, the system calls this method when the user wants to begin playback of your media. Use your implementation of this method to initiate playback.

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 mediaPause()

Tells you to pause playback of your media content.