From c1f89012759a554160c3811645d5d55a0ec82734 Mon Sep 17 00:00:00 2001 From: wangyifei Date: Fri, 13 Jun 2025 19:28:17 +0800 Subject: [PATCH] js Signed-off-by: wangyifei --- api/@ohos.file.photoAccessHelper.d.ts | 21 +++++++------------ ...@ohos.file.sendablePhotoAccessHelper.d.ets | 4 ++-- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index b481c7780c..60eedd8809 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -100,8 +100,8 @@ declare namespace photoAccessHelper { * @throws { BusinessError } 202 - Called by non-system application * @throws { BusinessError } 13900020 - Invalid argument * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @StageModelOnly * @systemapi + * @StageModelOnly * @crossplatform * @since 19 */ @@ -178,7 +178,7 @@ declare namespace photoAccessHelper { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - VIDEO + VIDEO = 2 } /** @@ -2849,15 +2849,8 @@ declare namespace photoAccessHelper { * * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @systemapi - * @since 18 - */ - /** - * Timestamp when the album was modified, in milliseconds. - * - * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @systemapi - * @atomicservice - * @since 20 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ DATE_MODIFIED = 'date_modified', } @@ -4172,7 +4165,7 @@ declare namespace photoAccessHelper { /** * Lpath for the album, one album has a virtual path * - * @type { string } + * @type { ?string } * @readonly * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @systemapi @@ -8364,7 +8357,7 @@ declare namespace photoAccessHelper { /** * modified time of thumbnail status * - * @type { number } + * @type { ?number } * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @systemapi * @since 14 @@ -9094,7 +9087,7 @@ declare namespace photoAccessHelper { * @param { Array } photoAssets - PhotoAsset to enhance. * @param { boolean } hasCloudWatermark - Whether to add a cloud watermark to the enhanced image. * The value true means to add the watermark, and false means the opposite. - * @param { number } triggerMode - Trigger mode of the cloud enhancement task. + * @param { number } [triggerMode] - Trigger mode of the cloud enhancement task. * 0: manually triggered. 1: automatically triggered. The default value is 0. * @returns { Promise } Returns void * @throws { BusinessError } 201 - Permission denied diff --git a/api/@ohos.file.sendablePhotoAccessHelper.d.ets b/api/@ohos.file.sendablePhotoAccessHelper.d.ets index bf2dbc140f..12926ba042 100644 --- a/api/@ohos.file.sendablePhotoAccessHelper.d.ets +++ b/api/@ohos.file.sendablePhotoAccessHelper.d.ets @@ -57,8 +57,8 @@ declare namespace sendablePhotoAccessHelper { * @throws { BusinessError } 202 - Called by non-system application * @throws { BusinessError } 13900020 - Invalid argument * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core - * @StageModelOnly * @systemapi + * @StageModelOnly * @crossplatform * @since 19 */ @@ -88,7 +88,7 @@ declare namespace sendablePhotoAccessHelper { * @atomicservice * @since 12 */ - VIDEO + VIDEO = 2 } /** -- Gitee