Skip to content

qchat.attachment.QChatAttachmentModule

Zvicii edited this page Dec 30, 2022 · 7 revisions

Class: QChatAttachmentModule

qchat/attachment.QChatAttachmentModule

Hierarchy

Table of contents

Methods

Properties

Constructors

Methods

eventNames

eventNames(): keyof QChatAttachmentEvents[]

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

Returns

keyof QChatAttachmentEvents[]

Inherited from

EventEmitter.eventNames

Defined in

node_modules/eventemitter3/index.d.ts:15


listeners

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

Return the listeners registered for a given event.

Type parameters

Name Type
T extends keyof QChatAttachmentEvents

Parameters

Name Type
event T

Returns

(...args: ArgumentMap<QChatAttachmentEvents>[Extract<T, keyof QChatAttachmentEvents>]) => 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 QChatAttachmentEvents

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 QChatAttachmentEvents

Parameters

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

Returns

boolean

Inherited from

EventEmitter.emit

Defined in

node_modules/eventemitter3/index.d.ts:32


on

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

Add a listener for a given event.

Type parameters

Name Type
T extends keyof QChatAttachmentEvents

Parameters

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

Returns

QChatAttachmentModule

Inherited from

EventEmitter.on

Defined in

node_modules/eventemitter3/index.d.ts:40


addListener

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

Type parameters

Name Type
T extends keyof QChatAttachmentEvents

Parameters

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

Returns

QChatAttachmentModule

Inherited from

EventEmitter.addListener

Defined in

node_modules/eventemitter3/index.d.ts:45


once

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

Add a one-time listener for a given event.

Type parameters

Name Type
T extends keyof QChatAttachmentEvents

Parameters

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

Returns

QChatAttachmentModule

Inherited from

EventEmitter.once

Defined in

node_modules/eventemitter3/index.d.ts:54


removeListener

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

Remove the listeners of a given event.

Type parameters

Name Type
T extends keyof QChatAttachmentEvents

Parameters

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

Returns

QChatAttachmentModule

Inherited from

EventEmitter.removeListener

Defined in

node_modules/eventemitter3/index.d.ts:63


off

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

Type parameters

Name Type
T extends keyof QChatAttachmentEvents

Parameters

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

Returns

QChatAttachmentModule

Inherited from

EventEmitter.off

Defined in

node_modules/eventemitter3/index.d.ts:69


removeAllListeners

removeAllListeners(event?): QChatAttachmentModule

Remove all listeners, or those of the specified event.

Parameters

Name Type
event? keyof QChatAttachmentEvents

Returns

QChatAttachmentModule

Inherited from

EventEmitter.removeAllListeners

Defined in

node_modules/eventemitter3/index.d.ts:79


initEventHandlers

initEventHandlers(): void

注册全局回调

Returns

void

Defined in

ts/qchat/attachment.ts:29


upload

upload(param): Promise<QChatAttachmentUploadResp>

Fn

upload(param: QChatAttachmentUploadParam) 上传附件 @param[in] param 接口参数

Parameters

Name Type
param QChatAttachmentUploadParam

Returns

Promise<QChatAttachmentUploadResp>

void

Defined in

ts/qchat/attachment.ts:38


stopUpload

stopUpload(param): void

Fn

void StopUpload(const std::string& task_id) 停止上传附件 @param[in] param 接口参数

Parameters

Name Type
param QChatAttachmentStopUploadParam

Returns

void

void

Defined in

ts/qchat/attachment.ts:53


download

download(param): Promise<QChatAttachmentDownloadResp>

Fn

download(param: QChatAttachmentDownloadParam) 下载附件 @param[in] param 接口参数

Parameters

Name Type
param QChatAttachmentDownloadParam

Returns

Promise<QChatAttachmentDownloadResp>

void

Defined in

ts/qchat/attachment.ts:62


stopDownload

stopDownload(param): void

Fn

stopDownload(param: QChatAttachmentStopDownloadParam) 停止下载附件 @param[in] param 接口参数

Parameters

Name Type
param QChatAttachmentStopDownloadParam

Returns

void

void

Defined in

ts/qchat/attachment.ts:77

Properties

instance

instance: any

Defined in

ts/qchat/attachment.ts:23

Constructors

constructor

new QChatAttachmentModule()

Overrides

EventEmitter<QChatAttachmentEvents&gt;.constructor

Defined in

ts/qchat/attachment.ts:24

Clone this wiki locally