vim-webgl-component
Version:
A demonstration app built on top of the vim-webgl-viewer
48 lines (47 loc) • 1.52 kB
TypeScript
import { DispatcherBase, IPropagationStatus } from "ste-core";
import { ISimpleEventHandler } from "./ISimpleEventHandler";
import { ISimpleEvent } from "./ISimpleEvent";
/**
* The dispatcher handles the storage of subsciptions and facilitates
* subscription, unsubscription and dispatching of a simple event
*
* @export
* @class SimpleEventDispatcher
* @extends {DispatcherBase<ISimpleEventHandler<TArgs>>}
* @implements {ISimpleEvent<TArgs>}
* @template TArgs
*/
export declare class SimpleEventDispatcher<TArgs> extends DispatcherBase<ISimpleEventHandler<TArgs>> implements ISimpleEvent<TArgs> {
/**
* Creates an instance of SimpleEventDispatcher.
*
* @memberOf SimpleEventDispatcher
*/
constructor();
/**
* Dispatches the event.
*
* @param {TArgs} args The arguments object.
* @returns {IPropagationStatus} The status of the event.
*
* @memberOf SimpleEventDispatcher
*/
dispatch(args: TArgs): IPropagationStatus;
/**
* Dispatches the event without waiting for the result.
*
* @param {TArgs} args The arguments object.
*
* @memberOf SimpleEventDispatcher
*/
dispatchAsync(args: TArgs): void;
/**
* Creates an event from the dispatcher. Will return the dispatcher
* in a wrapper. This will prevent exposure of any dispatcher methods.
*
* @returns {ISimpleEvent<TArgs>} The event.
*
* @memberOf SimpleEventDispatcher
*/
asEvent(): ISimpleEvent<TArgs>;
}