add analysis progress api

Signed-off-by: 刘正基 <liuzhengji@huawei.com>
This commit is contained in:
刘正基 2024-07-16 09:34:40 +08:00
parent 2f5a99ddb0
commit 7d621e1fed

View File

@ -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.
*