!12482 新增getindexprogress接口

Merge pull request !12482 from caochuan/getindexprogress
This commit is contained in:
openharmony_ci 2024-07-11 09:14:56 +00:00 committed by Gitee
commit d644ba29d5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3246,6 +3246,19 @@ declare namespace photoAccessHelper {
* @since 11
*/
applyChanges(mediaChangeRequest: MediaChangeRequest): Promise<void>;
/**
* Get index construction progress.
*
* @permission ohos.permission.READ_IMAGEVIDEO
* @returns { Promise<string> } Returns progress of the photo and video
* @throws { BusinessError } 201 - Permission denied
* @throws { BusinessError } 202 - Called by non-system application
* @throws { BusinessError } 14000011 - Internal system error
* @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core
* @systemapi
* @since 12
*/
getIndexConstructProgress(): Promise<string>;
}
/**