- Preparing search index...
- The search index is not available
feng3d
Properties
Static
Private
emitterListenerMap
emitter
Listener
Map
: Map<EventEmitter<any>, ObjectListener> = ...
Static
Private
emitterTargetMap
Static
Private
targetEmitterMap
Methods
broadcast
- broadcast<K>(type: K, data?: T[K]): IEvent<T[K]>
-
Parameters
-
type: K
-
Optional
data: T[K]
Returns IEvent<T[K]>
bubbles
- bubbles<K>(type: K, data?: T[K]): IEvent<T[K]>
-
Parameters
-
type: K
-
Optional
data: T[K]
Returns IEvent<T[K]>
dispose
- dispose(): void
-
Returns void
emit
- emit<K>(type: K, data?: T[K], bubbles?: boolean, broadcast?: boolean, share?: boolean): IEvent<T[K]>
-
Parameters
-
type: K
-
Optional
data: T[K]
-
bubbles: boolean = false
-
broadcast: boolean = false
-
share: boolean = true
Returns IEvent<T[K]>
eventNames
- eventNames<K>(): K[]
-
Returns K[]
Protected
handelEventBroadcast
- handelEventBroadcast<K>(event: IEvent<T[K]>): void
-
Returns void
Protected
handelEventBubbles
- handelEventBubbles<K>(event: IEvent<T[K]>): void
-
Returns void
Protected
handelEventShare
- handelEventShare<K>(event: IEvent<T[K]>): void
-
Returns void
Protected
handleEvent
- handleEvent<K>(e: IEvent<T[K]>): void
-
Returns void
has
- has<K>(type: K): boolean
-
Returns boolean
listenerCount
- listenerCount<K>(type: K): number
-
Returns number
off
- off<K>(type?: K, listener?: ((event: IEvent<T[K]>) => void), thisObject?: any): EventEmitter<T>
-
Parameters
-
Optional
type: K
-
Optional
listener: ((event: IEvent<T[K]>) => void)
-
- (event: IEvent<T[K]>): void
-
Returns void
-
Optional
thisObject: any
offAny
- offAny<K>(listener?: ((event: IEvent<T[K]>) => void), thisObject?: any): EventEmitter<T>
-
Parameters
-
Optional
listener: ((event: IEvent<T[K]>) => void)
-
- (event: IEvent<T[K]>): void
-
Returns void
-
Optional
thisObject: any
on
- on<K>(type: K, listener: ((event: IEvent<T[K]>) => void), thisObject?: any, priority?: number, once?: boolean): EventEmitter<T>
-
Parameters
-
type: K
-
listener: ((event: IEvent<T[K]>) => void)
-
- (event: IEvent<T[K]>): void
-
Returns void
-
Optional
thisObject: any
-
priority: number = 0
-
once: boolean = false
onAny
- onAny<K>(listener: ((event: IEvent<T[K]>) => void), thisObject?: any, priority?: number, once?: boolean): EventEmitter<T>
-
Parameters
-
listener: ((event: IEvent<T[K]>) => void)
-
- (event: IEvent<T[K]>): void
-
Returns void
-
Optional
thisObject: any
-
priority: number = 0
-
once: boolean = false
once
- once<K>(type: K, listener: ((event: IEvent<T[K]>) => void), thisObject?: any, priority?: number): EventEmitter<T>
-
Parameters
-
type: K
-
listener: ((event: IEvent<T[K]>) => void)
-
- (event: IEvent<T[K]>): void
-
Returns void
-
Optional
thisObject: any
-
priority: number = 0
Static
getOrCreateEventEmitter
事件发射器