Contents

dispatch(event:userInfo:completion:)

Dispatches custom playback events to the JavaScript environment.

Declaration

func dispatch(event: TVPlaybackEvent, userInfo: (any TVPlaybackEventMarshaling)?, completion: (@Sendable (Bool) -> Void)? = nil)
func dispatch(event: TVPlaybackEvent, userInfo: (any TVPlaybackEventMarshaling)?) async -> Bool

Parameters

  • event:

    The custom playback event to be dispatched.

  • userInfo:

    The user information for the custom event.

  • completion:

    A block that is called after the event has been dispatched. Contains the information required to process the event’s results.

Discussion

See Also

Controlling Playback