Class: Controller
Hierarchy
↳
Controller
Constructors
constructor
• new Controller()
Inherited from
Methods
count
▸ count(name): number
Count the service event
Parameters
| Name | Type | Description |
|---|---|---|
name | string | Event name |
Returns
number
Inherited from
Defined in
src/common/event/eventBus.ts:28
emit
▸ emit(name, ...args): void
Emit the service event
Parameters
| Name | Type | Description |
|---|---|---|
name | string | Event name |
...args | any | Arguments |
Returns
void
Inherited from
Defined in
src/common/event/eventBus.ts:20
initView
▸ Abstract initView(): void
Returns
void
Defined in
subscribe
▸ subscribe(name, callback): void
Subscribe the service event
Parameters
| Name | Type | Description |
|---|---|---|
name | string | string[] | Event name |
callback | Function | Callback function |
Returns
void
Inherited from
Defined in
src/common/event/eventBus.ts:11
unsubscribe
▸ unsubscribe(name): void
Unsubscribe the specific event
Parameters
| Name | Type | Description |
|---|---|---|
name | any | The event name |
Returns
void