Skip to content

nim_def.tool_def.NIMToolAPI

Zvicii edited this page Nov 22, 2022 · 3 revisions

Interface: NIMToolAPI

nim_def/tool_def.NIMToolAPI

Table of contents

Methods

Methods

InitEventHandlers

InitEventHandlers(): void

Returns

void

Defined in

ts/nim_def/tool_def.ts:22


GetUserAppdataDir

GetUserAppdataDir(appAccount): string

Parameters

Name Type
appAccount string

Returns

string

Defined in

ts/nim_def/tool_def.ts:24


GetSpecificAppdataDir

GetSpecificAppdataDir(appAccount, appdataType): string

Parameters

Name Type
appAccount string
appdataType NIMAppDataType

Returns

string

Defined in

ts/nim_def/tool_def.ts:26


GetLocalAppdataDir

GetLocalAppdataDir(): string

Returns

string

Defined in

ts/nim_def/tool_def.ts:28


GetCurModuleDir

GetCurModuleDir(): string

Returns

string

Defined in

ts/nim_def/tool_def.ts:30


GetMd5

GetMd5(input): string

Parameters

Name Type
input string

Returns

string

Defined in

ts/nim_def/tool_def.ts:32


GetFileMd5

GetFileMd5(filePath): string

Parameters

Name Type
filePath string

Returns

string

Defined in

ts/nim_def/tool_def.ts:34


GetUuid

GetUuid(): string

Returns

string

Defined in

ts/nim_def/tool_def.ts:36


GetAudioTextAsync

GetAudioTextAsync(audioInfo, cb, jsonExtension): boolean

Parameters

Name Type
audioInfo AudioInfo
cb null | GetAudioTextCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/tool_def.ts:38


FilterClientAntispam

FilterClientAntispam(text, replaceString, libName, cb): void

Parameters

Name Type
text string
replaceString string
libName string
cb null | FilterClientAntispamCallback

Returns

void

Defined in

ts/nim_def/tool_def.ts:40

Clone this wiki locally