Events

Summary

Methods

Method Returns
Subscribe(eventName: string, callback: callable) Event
Subscribe(eventName: string, context: any, callback: callable) Event
Dispatch(eventName: string, …args: any) void
DispatchLocal(eventName: string, …args: any) void
Unsubscribe() void
Unsubscribe(eventName: string) void

Methods

Subscribe

Subscribe(eventName: string, callback: callable): Event

Parameters

Name Type Description
eventName string
callback callable

Returns

Type Description
Event

Subscribe

Subscribe(eventName: string, context: any, callback: callable): Event

Parameters

Name Type Description
eventName string
context any
callback callable

Returns

Type Description
Event

Dispatch

Dispatch(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

DispatchLocal

DispatchLocal(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

Unsubscribe

Unsubscribe()

Unsubscribe

Unsubscribe(eventName: string)

Parameters

Name Type Description
eventName string
Last modified April 27, 2020: Regenerate all API documentation (0b49d6be)