mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 23:30:15 +00:00
add analysis progress api
Signed-off-by: 刘正基 <liuzhengji@huawei.com>
This commit is contained in:
parent
2f5a99ddb0
commit
7d621e1fed
26
api/@ohos.file.photoAccessHelper.d.ts
vendored
26
api/@ohos.file.photoAccessHelper.d.ts
vendored
@ -332,7 +332,15 @@ declare namespace photoAccessHelper {
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
ANALYSIS_VIDEO_LABEL
|
||||
ANALYSIS_VIDEO_LABEL,
|
||||
/**
|
||||
* Analysis of highlight
|
||||
*
|
||||
* @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
ANALYSIS_HIGHLIGHT
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3025,6 +3033,22 @@ declare namespace photoAccessHelper {
|
||||
* @since 10
|
||||
*/
|
||||
registerChange(uri: string, forChildUris: boolean, callback: Callback<ChangeData>): void;
|
||||
/**
|
||||
* Get analysis progress of the asset.
|
||||
*
|
||||
* @permission ohos.permission.READ_IMAGEVIDEO
|
||||
* @param { AnalysisType } analysisType - Analysis type
|
||||
* @returns { Promise<string> } Returns analysis progress info into a json string
|
||||
* @throws { BusinessError } 201 - Permission denied
|
||||
* @throws { BusinessError } 202 - Called by non-system application
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* <br>2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 14000011 - System inner fail
|
||||
* @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
getDataAnalysisProgress(analysisType: AnalysisType): Promise<string>;
|
||||
/**
|
||||
* Unregister change notify for the specified uri.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user