Gamalto

Fork me on GitHub

Object Broadcaster Overview

Gamalto. Broadcaster

new Gamalto.Broadcaster()

Creates messages manager object.

Extends

Members

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

clone() object

inherited abstract

Clones the object. It will be shallow copy unless otherwise specfied.

Inherited From
Returns
  • New instance of the object. Defaults to null.

publish(event, …vargsopt)

Sends an event and related data to the subscribers if any.

Parameters
Name Type Attributes Description
event string

Name of the event.

vargs object <optional>
<repeatable>

Event related data.

subscribe(event, callback, target) Gamalto.Subscription

Subscribes to an event.

Parameters
Name Type Description
event string

Name of the event.

callback function

Function to be used when an event occurs.

target object

Execution context when calling the callback.

Returns
  • Context to handle the subscription.

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)