From 7461dca2297696098557814bc88c5ea2e1975e52 Mon Sep 17 00:00:00 2001 From: liwei Date: Fri, 15 Aug 2025 09:28:57 +0800 Subject: [PATCH] add_matebinding_interface Signed-off-by: liwei Change-Id: I0657299333f010b6f8f94094db1bfa525ca7685a --- api/@ohos.file.photoAccessHelper.d.ts | 46 ++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index 2b7ca4583d..ca3ef782de 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -2850,7 +2850,25 @@ declare namespace photoAccessHelper { * @since 20 * @arkts 1.1&1.2 */ - EXIF_ROTATE = 'exif_rotate' + EXIF_ROTATE = 'exif_rotate', + /** + * AppLink state of assets, read only + * + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 21 + * @arkts 1.1&1.2 + */ + HAS_APPLINK = 'has_applink', + /** + * AppLink info of assets, read only + * + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 21 + * @arkts 1.1&1.2 + */ + APPLINK = 'applink' } /** @@ -8754,6 +8772,32 @@ declare namespace photoAccessHelper { * @since 19 */ static deleteLocalAssetsPermanentlyWithUri(context: Context, assetUris: Array): Promise; + + /** + * Set the AppLink state of this asset. + * + * @param { int } hasAppLink - AppLink state of the asset to set. + * @throws { BusinessError } 202 - Called by non-system application + * @throws { BusinessError } 23800301 - Internal system error.It is recommended to retry and check the logs. + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 21 + * @arkts 1.1&1.2 + */ + setHasAppLink(hasAppLink: int): void; + + /** + * Set the AppLink info of this asset. + * + * @param { string } appLink - AppLink info of the asset to set. + * @throws { BusinessError } 202 - Called by non-system application + * @throws { BusinessError } 23800301 - Internal system error.It is recommended to retry and check the logs. + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 21 + * @arkts 1.1&1.2 + */ + setAppLinkInfo(appLink: string): void; } /** -- Gitee