Skip to content

qchat.system_notification.QChatSystemNotificationModule

Zvicii edited this page Feb 10, 2023 · 6 revisions

Class: QChatSystemNotificationModule

qchat/system_notification.QChatSystemNotificationModule

Hierarchy

Table of contents

Methods

Properties

Constructors

Methods

eventNames

eventNames(): keyof QChatSystemNotificationEvents[]

Return an array listing the events for which the emitter has registered listeners.

Returns

keyof QChatSystemNotificationEvents[]

Inherited from

EventEmitter.eventNames

Defined in

node_modules/eventemitter3/index.d.ts:15


listeners

listeners<T>(event): (...args: ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]) => void[]

Return the listeners registered for a given event.

Type parameters

Name Type
T extends keyof QChatSystemNotificationEvents

Parameters

Name Type
event T

Returns

(...args: ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]) => void[]

Inherited from

EventEmitter.listeners

Defined in

node_modules/eventemitter3/index.d.ts:20


listenerCount

listenerCount(event): number

Return the number of listeners listening to a given event.

Parameters

Name Type
event keyof QChatSystemNotificationEvents

Returns

number

Inherited from

EventEmitter.listenerCount

Defined in

node_modules/eventemitter3/index.d.ts:27


emit

emit<T>(event, ...args): boolean

Calls each of the listeners registered for a given event.

Type parameters

Name Type
T extends keyof QChatSystemNotificationEvents

Parameters

Name Type
event T
...args ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]

Returns

boolean

Inherited from

EventEmitter.emit

Defined in

node_modules/eventemitter3/index.d.ts:32


on

on<T>(event, fn, context?): QChatSystemNotificationModule

Add a listener for a given event.

Type parameters

Name Type
T extends keyof QChatSystemNotificationEvents

Parameters

Name Type
event T
fn (...args: ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]) => void
context? any

Returns

QChatSystemNotificationModule

Inherited from

EventEmitter.on

Defined in

node_modules/eventemitter3/index.d.ts:40


addListener

addListener<T>(event, fn, context?): QChatSystemNotificationModule

Type parameters

Name Type
T extends keyof QChatSystemNotificationEvents

Parameters

Name Type
event T
fn (...args: ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]) => void
context? any

Returns

QChatSystemNotificationModule

Inherited from

EventEmitter.addListener

Defined in

node_modules/eventemitter3/index.d.ts:45


once

once<T>(event, fn, context?): QChatSystemNotificationModule

Add a one-time listener for a given event.

Type parameters

Name Type
T extends keyof QChatSystemNotificationEvents

Parameters

Name Type
event T
fn (...args: ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]) => void
context? any

Returns

QChatSystemNotificationModule

Inherited from

EventEmitter.once

Defined in

node_modules/eventemitter3/index.d.ts:54


removeListener

removeListener<T>(event, fn?, context?, once?): QChatSystemNotificationModule

Remove the listeners of a given event.

Type parameters

Name Type
T extends keyof QChatSystemNotificationEvents

Parameters

Name Type
event T
fn? (...args: ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]) => void
context? any
once? boolean

Returns

QChatSystemNotificationModule

Inherited from

EventEmitter.removeListener

Defined in

node_modules/eventemitter3/index.d.ts:63


off

off<T>(event, fn?, context?, once?): QChatSystemNotificationModule

Type parameters

Name Type
T extends keyof QChatSystemNotificationEvents

Parameters

Name Type
event T
fn? (...args: ArgumentMap<QChatSystemNotificationEvents>[Extract<T, keyof QChatSystemNotificationEvents>]) => void
context? any
once? boolean

Returns

QChatSystemNotificationModule

Inherited from

EventEmitter.off

Defined in

node_modules/eventemitter3/index.d.ts:69


removeAllListeners

removeAllListeners(event?): QChatSystemNotificationModule

Remove all listeners, or those of the specified event.

Parameters

Name Type
event? keyof QChatSystemNotificationEvents

Returns

QChatSystemNotificationModule

Inherited from

EventEmitter.removeAllListeners

Defined in

node_modules/eventemitter3/index.d.ts:79


initEventHandlers

initEventHandlers(): void

注册全局回调

Returns

void

Defined in

ts/qchat/system_notification.ts:33


send

send(param): Promise<QChatSendSystemNotificationResp>

Fn

send(param: QChatSendSystemNotificationParam) 发送系统消息 @param[in] param 接口参数

Parameters

Name Type
param QChatSendSystemNotificationParam

Returns

Promise<QChatSendSystemNotificationResp>

void

Defined in

ts/qchat/system_notification.ts:41


update

update(param): Promise<QChatUpdateSystemNotificationResp>

Fn

update(param: QChatUpdateSystemNotificationParam)

Brief

更新系统消息 @param[in] param 接口参数

Parameters

Name Type
param QChatUpdateSystemNotificationParam

Returns

Promise<QChatUpdateSystemNotificationResp>

Defined in

ts/qchat/system_notification.ts:55


markSystemNotificationsRead

markSystemNotificationsRead(param): Promise<QChatBaseResp>

Fn

markSystemNotificationsRead(param: QChatMarkSystemNotificationsReadParam)

Brief

标记系统通知消息已读

Parameters

Name Type Description
param QChatMarkSystemNotificationsReadParam 接口参数

Returns

Promise<QChatBaseResp>

void

Defined in

ts/qchat/system_notification.ts:70


sendTypingEvent

sendTypingEvent(param): Promise<QChatSendTypingEventResp>

Fn

sendTypingEvent(param: QChatSendTypingEventParam)

Brief

发送正在输入事件

Parameters

Name Type Description
param QChatSendTypingEventParam 接口参数

Returns

Promise<QChatSendTypingEventResp>

void

Defined in

ts/qchat/system_notification.ts:85

Properties

instance

instance: any

Defined in

ts/qchat/system_notification.ts:27

Constructors

constructor

new QChatSystemNotificationModule()

Overrides

EventEmitter<QChatSystemNotificationEvents&gt;.constructor

Defined in

ts/qchat/system_notification.ts:28

Clone this wiki locally