From 199567b419b819149df52c9d49898b1577f8d203 Mon Sep 17 00:00:00 2001 From: "xuzixia1@h-partners.com" Date: Tue, 10 Jun 2025 19:19:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=8A=A8=E6=80=81=E7=85=A7?= =?UTF-8?q?=E7=89=87=E8=A7=86=E9=A2=91=E6=96=87=E4=BB=B6=E6=98=AF=E5=90=A6?= =?UTF-8?q?ready=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuzixia1@h-partners.com --- api/@ohos.file.photoAccessHelper.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index b481c7780c..25712bf8f3 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; } /** -- Gitee