EMCallback

EMCallback

new EMCallback()

Source:
EMCallback constructor.

Methods

onFail(callback) → {void}

Source:
设置操作失败时执行的回调
Parameters:
Name Type Description
callback EMCallback~fail 回调函数,失败时执行
Returns:
Type
void

onProgress(callback) → {void}

Source:
操作进度改变时,执行的回调
Parameters:
Name Type Description
callback EMCallback~progress called when method is running
Returns:
Type
void

onSuccess(callback) → {void}

Source:
设置操作成功时执行的回调
Parameters:
Name Type Description
callback EMCallback~success 回调函数,成功时执行
Returns:
Type
void

(inner) fail(error) → {void}

Source:
Parameters:
Name Type Description
error EMError EMError对象
Returns:
Type
void

(inner) progress(progress) → {void}

Source:
Parameters:
Name Type Description
progress Number 进度,1-100
Returns:
Type
void

(inner) success() → {void}

Source:
Returns:
Type
void