Skip to content

DataAPI SDK english MT.DataAPI Static method on

Taku AMANO edited this page Jul 5, 2013 · 1 revision

on

Register global level callback. The callback registered with this method is called by all the instances of DataAPI.

Parameters

Name Type Required Description
key String yes Event name
callback Function yes Callback function

Example

var callback = function() {
  // Do stuff
};
DataAPI.on(eventName, callback);

See also

Events

Clone this wiki locally