smwebsdk.smevent
Home > @soulmachines/smwebsdk > SmEvent
SmEvent class
An event which can have a set of listeners registered against it using addListener().
Signature:
export declare class SmEvent
Methods
Method | Modifiers | Description |
---|---|---|
addListener(callback) | Register a new listener for this event. | |
call(args) | Trigger the event, calling each registered listener, and passing on any parameters. | |
removeListener(callback) | Deregister a existing listener for this event. |