The user information used in a custom playback event.


class TVPlaybackCustomEventUserInfo : NSObject


Creating User Info for Custom Playback Events

init(properties: [TVPlaybackEventProperty : Any]?, expectsReturnValue: Bool)

Create a new custom playback event user info dictionary.

struct TVPlaybackEventProperty

Extend this structure to create your own custom playback event properties.

var expectsReturnValue: Bool

A Boolean value that indicates whether the custom event expects to contain a return value.

var returnValue: Any?

The return value type for the custom event.

See Also

Controlling Playback

func next()

Plays the next media item in the playlist.

func pause()

Pauses the currently playing item.

func previous()

Plays the previous media item in the playlist.

var state: TVPlaybackState

The current state of the player.

enum TVPlaybackState

The possible states of a player.

struct TVPlaybackEvent

Extend this structure to send your custom playback events to the JavaScript environment.

protocol TVPlaybackEventMarshaling

A protocol used for sending and receiving information across the JavaScript bridge.