From 96436ea0e708424c474f4b8c1a5b74ffb7a8ddfc Mon Sep 17 00:00:00 2001 From: ertugrulfarukpiskin Date: Thu, 11 Sep 2025 08:16:40 +0300 Subject: [PATCH] Add getAssetsByOldUris Signed-off-by: ertugrulfarukpiskin --- api/@ohos.file.photoAccessHelper.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index ee482d899a..594f4bf490 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -6471,6 +6471,27 @@ declare namespace photoAccessHelper { * @arkts 1.1&1.2 */ query(sql: string): Promise; + + /** + * This interface is used to obtain the post-cloning URI list. + * + * @permission ohos.permission.READ_IMAGEVIDEO + * @param { Array } oldUris - The old uris before cloning. + * @returns { Promise> } A list of Maps consisting of the corresponding post-clone URIs. + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 202 - Called by non-system application. + * @throws { BusinessError } 23800151 - The scenario parameter verification fails. + * Possible causes: The size of input parameter exceeds 100 or is 0. + * @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 21 + */ + getAssetsByOldUris(oldUris: Array): Promise>; } /** -- Gitee