Instance Method

processReturnValue(value:in:)

Converts a JavaScript value into a value that is readable in Swift or Objective-C.

Declaration

optional func processReturnValue(value: JSValue, in jsContext: JSContext)

Parameters

value

A JavaScript value returned by the dispatch event.

jsContext

The JavaScript context for the value.

See Also

Processing Playback Events

var properties: [TVPlaybackEventProperty : Any]?

An array of custom playback event properties.

Required.

struct TVPlaybackEventProperty

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