Optional
options: IOptionsReturns the current device time in ISO8601 format. Current device time is determined by the device timezone assigned to the device in the CMS.
Optional
date: DateOptional. If supplied will translate the supplied date/time to device time based on respective timezones.
Date/time in ISO8601 format
Accessor method for the user preferences interface exposed by the Gadgets API.
See https://developers.google.com/gadgets/docs/basic for more details on the Gadgets API.
Gadget API Prefs object
A session is a way of grouping events together. Each event has an associated session ID. Session ID's are randomly generated and reset by subsequent calls to newEventSession().
Each call to track() will utilize the same session ID, until another call to newEventSession().
Optional
id: stringOptional. User supplied session ID. If not supplied a random session ID will be generated.
Remove an event listener for the specified player event.
type of event to listen for
Add an event listener for the specified player event.
type of event to listen for
function to call when the event is triggered
Send a command to any remote player with the supplied device key(s). Note: Remote commands can only be delivered to devices within the same account as the sender device.
Array of remote device keys
Command name
Command arg
Log an event for use with AdHawk analytics. Events are used for tracking various metrics including usage statistics, player condition, state changes, etc.
Unique name for this event
Optional
properties: IEventPropertiesA map of user defined properties to associate with this event
This method allows the gadget to communicate with player scripting. If the appropriate scripting is in place in the currently running template, calling this method will initiate a callback which can be acted upon in player script.