diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index b481c7780ca62b30d36ca4d3704388915b6cff73..25712bf8f33503f2e74fd8bd50991619c8ee5ef7 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -8540,6 +8540,22 @@ declare namespace photoAccessHelper { * @arkts 1.1&1.2 */ getUri(): string; + + /** + * Check if the video of the moving photo is ready. + * + * @permission ohos.permission.READ_IMAGEVIDEO + * @returns { Promise } Returns whether the video is ready + * @throws { BusinessError } 201 - Permission denied + * @throws { BusinessError } 202 - Called by non-system application + * @throws { BusinessError } 23800301 - Internal system error. It is recommended to retry and check the logs. + *
Possible causes: 1. Database corrupted; 2. The file system is abnormal; 3. The IPC request timed out. + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + isVideoReady(): Promise; } /**