Appearance
清空人脸
方法名
clearFace
用法
- 用法如下:js
module.clearFace({ complete: (res) => { this.writeLog(JSON.stringify(res)) } })jsmodule.clearFace({ complete: (res : LevenResult) => { this.writeLog(JSON.stringify(res)) } } as LevenOptions) - 参数说明
参数名 参数类型 是否必填 默认值 参数描述 success Function 否 无 执行成功的函数 fail Function 否 无 执行失败的函数 complete Function 否 无 执行完成的函数,不管成功还是失败都会执行
回调
- 示例json
{ "data": { "type":"startClearDb" }, "message": "", "code": 0 } - 回调说明:
参数名 参数类型 参数描述 message String 消息提示 data Object 数据对象 data.type String 清理类型,具体类型如下: startClearDb:开始清理数据库finishClearDb:数据库清理完成startClearCache:开始清理缓存finishClearCache:缓存清理完成startClearFaceImage:开始清理人脸图片clearFaceImageProgress:人脸图片清理进度finishClearFaceImage:人脸图片清理完成clearComplete:清理结束clearFail:清理失败data.deleteCount Integer 删除数量, clearFaceImageProgress状态下返回data.totalCount Integer 总数量, clearFaceImageProgress状态下返回data.code Integer 清理失败错误码, clearFail状态下返回data.message Integer 清理失败信息提示, clearFail状态下返回code Integer 返回类型,0.成功,其他:失败

