跳到主要内容
版本:1.x

Interface: INotificationController

molecule.INotificationController

Hierarchy

Methods

count

Optional count(name): number

Count the service event

Parameters

NameTypeDescription
namestringEvent name

Returns

number

Inherited from

Partial.count

Defined in

common/event/eventBus.ts:28


emit

Optional emit(name, ...args): void

Emit the service event

Parameters

NameTypeDescription
namestringEvent name
...argsanyArguments

Returns

void

Inherited from

Partial.emit

Defined in

common/event/eventBus.ts:20


initView

Optional Abstract initView(): void

Returns

void

Inherited from

Partial.initView

Defined in

react/controller.ts:4


onActionBarClick

Optional onActionBarClick(event, item): void

Parameters

NameType
eventMouseEvent<Element, MouseEvent>
itemIActionBarItemProps<any>

Returns

void

Defined in

controller/notification.tsx:22


onClick

Optional onClick(e, item): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
itemIStatusBarItem<any>

Returns

void

Defined in

controller/notification.tsx:21


onCloseNotification

onCloseNotification(item): void

Parameters

NameType
itemINotificationItem<any>

Returns

void

Defined in

controller/notification.tsx:20


subscribe

Optional subscribe(name, listener): void

Subscribe the service event

Parameters

NameTypeDescription
namestring | string[]Event name
listenerFunctionListener function

Returns

void

Inherited from

Partial.subscribe

Defined in

common/event/eventBus.ts:11


toggleNotifications

toggleNotifications(): void

Toggle the Notifications visibility

Returns

void

Defined in

controller/notification.tsx:29


unsubscribe

Optional unsubscribe(name, listener?): void

Unsubscribe the specific event and the listener function

Parameters

NameTypeDescription
nameanyThe event name
listener?Functionoptional, it unsubscribes events via name if not pass the listener function

Returns

void

Inherited from

Partial.unsubscribe

Defined in

common/event/eventBus.ts:37