A generic utility class for managing subscribers for a particular event.
This class is usually instantiated inside of a container class and
exposed as a property for others to subscribe to.
alias Event
Annotations
@RawJSType()@native()@JSName("Cesium.Event")
Example:
MyObject.prototype.myListener = function(arg1, arg2) {
this.myArg1Copy = arg1;
this.myArg2Copy = arg2;
}
var myObjectInstance = new MyObject();
var evt = new Cesium.Event();
evt.addEventListener(MyObject.prototype.myListener, myObjectInstance);
evt.raiseEvent('1', '2');
evt.removeEventListener(MyObject.prototype.myListener);
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
Event
Object
Any
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newEvent()
Value Members
final def!=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final def##(): Int
Definition Classes
AnyRef → Any
final def==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
defaddEventListener(listener: Function, scope: Any = ???): RemoveCallback
A generic utility class for managing subscribers for a particular event. This class is usually instantiated inside of a container class and exposed as a property for others to subscribe to.
alias Event
MyObject.prototype.myListener = function(arg1, arg2) { this.myArg1Copy = arg1; this.myArg2Copy = arg2; } var myObjectInstance = new MyObject(); var evt = new Cesium.Event(); evt.addEventListener(MyObject.prototype.myListener, myObjectInstance); evt.raiseEvent('1', '2'); evt.removeEventListener(MyObject.prototype.myListener);