Skip to content

nim_def.nos_def.NIMNOSAPI

Zvicii edited this page Nov 22, 2022 · 3 revisions

Interface: NIMNOSAPI

nim_def/nos_def.NIMNOSAPI

Table of contents

Methods

Methods

InitEventHandlers

InitEventHandlers(): void

Returns

void

Defined in

ts/nim_def/nos_def.ts:71


InitConfig

InitConfig(param, cb): void

Parameters

Name Type
param InitNosConfigParam
cb null | InitNosResultCallback

Returns

void

Defined in

ts/nim_def/nos_def.ts:73


FetchMedia

FetchMedia(msg, jsonExtension, res_cb, prg_cb, speed_cb, transfer_cb): boolean

Parameters

Name Type
msg IMMessage
jsonExtension string
res_cb null | DownloadMediaCallback
prg_cb null | ProgressCallback
speed_cb null | SpeedCallback
transfer_cb null | TransferInfoCallback

Returns

boolean

Defined in

ts/nim_def/nos_def.ts:75


StopFetchMedia

StopFetchMedia(msg): boolean

Parameters

Name Type
msg IMMessage

Returns

boolean

Defined in

ts/nim_def/nos_def.ts:84


UploadResource

UploadResource(local_file, tag, param, res_cb, prg_cb, speed_cb, transfer_cb): boolean

Parameters

Name Type
local_file string
tag string
param NOSParams
res_cb null | UploadMediaExCallback
prg_cb null | ProgressExCallback
speed_cb null | SpeedCallback
transfer_cb null | TransferInfoCallback

Returns

boolean

Defined in

ts/nim_def/nos_def.ts:86


StopUploadResource

StopUploadResource(task_id, jsonExtension): boolean

Parameters

Name Type
task_id string
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/nos_def.ts:96


DownloadResource

DownloadResource(nosUrl, param, res_cb, prg_cb, speed_cb, transfer_cb): boolean

Parameters

Name Type
nosUrl string
param NOSParams
res_cb null | DownloadMediaExCallback
prg_cb null | ProgressExCallback
speed_cb null | SpeedCallback
transfer_cb null | TransferInfoCallback

Returns

boolean

Defined in

ts/nim_def/nos_def.ts:98


StopDownloadResource

StopDownloadResource(task_id, jsonExtension): boolean

Parameters

Name Type
task_id string
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/nos_def.ts:107


SafeURLToOriginURL

SafeURLToOriginURL(safe_url, cb, jsonExtension): void

Parameters

Name Type
safe_url string
cb null | SafeURLToOriginURLCallback
jsonExtension string

Returns

void

Defined in

ts/nim_def/nos_def.ts:109


SetSupportQuickTrans

SetSupportQuickTrans(quick): void

Parameters

Name Type
quick boolean

Returns

void

Defined in

ts/nim_def/nos_def.ts:111

Clone this wiki locally