Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

Description

The method TouchCastPlayerAPI.Event.subscribe() allows you to subscribe to a range of events defined by the SDK,

and run callback functions for when the event is fired.

TouchCastPlayerAPI.Event.subscribe(event, callback);

Parameters

NameDescriptionType
eventThe name of the event type you want to subscribe to. Click here for a list of all events.string
callbackThis is the callback function that is triggered when the event is fired. You can add multiple callbacks to the same event, by calling .Event.subscribe() again with a different callback. All the callbacks you've added will be triggered when the event takes place. See the table below Callback Parameters for a list of all the arguments the callback function will receive.function
  • No labels