Instance Method

mediaPlay

Tells you to begin playback of your media content.

Declaration

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

mediaPlayPauseButtonType

The type of media button type to display.

UNNotificationContentExtensionMediaPlayPauseButtonType

Constants indicating the type of media button to display.

mediaPlayPauseButtonFrame

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

mediaPlayPauseButtonTintColor

The tint color for the media playback button.

- mediaPause

Tells you to pause playback of your media content.