From 0be876d8f563fdc7ddf68418d837330c1a1881a2 Mon Sep 17 00:00:00 2001 From: aziztek Date: Mon, 8 Sep 2025 19:52:56 +0300 Subject: [PATCH 1/2] Add orientation, photoSubType and dynamicRangeType fields to BaseItemInfo Signed-off-by: aziztek --- api/@ohos.file.PhotoPickerComponent.d.ets | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/api/@ohos.file.PhotoPickerComponent.d.ets b/api/@ohos.file.PhotoPickerComponent.d.ets index 52885ab0e0..7903d9067a 100644 --- a/api/@ohos.file.PhotoPickerComponent.d.ets +++ b/api/@ohos.file.PhotoPickerComponent.d.ets @@ -559,6 +559,37 @@ export declare class BaseItemInfo { * @since 12 */ duration?: number; + + /** + * PhotoSubtype. Asset subtype, non-special type images default to DEFAULT(0). + * + * @type { ?photoAccessHelper.PhotoSubtype } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + photoSubType?: photoAccessHelper.PhotoSubtype; + + /** + * DynamicRangeType. Dynamic range type of media files. + * For movingPhoto, this specifically refers to the dynamic range type of the cover image. + * + * @type { ?photoAccessHelper.DynamicRangeType } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + dynamicRangeType?: photoAccessHelper.DynamicRangeType; + + /** + * Orientation. Image/Video orientation information. + * + * @type { ?number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + orientation?: number; } /** -- Gitee From f2a5db8e8936bfee2b70a38cbc786ecbf8ffdfc3 Mon Sep 17 00:00:00 2001 From: aziztek Date: Wed, 10 Sep 2025 17:56:42 +0300 Subject: [PATCH 2/2] fix api level info Signed-off-by: aziztek --- api/@ohos.file.PhotoPickerComponent.d.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.file.PhotoPickerComponent.d.ets b/api/@ohos.file.PhotoPickerComponent.d.ets index 7903d9067a..48727f3b48 100644 --- a/api/@ohos.file.PhotoPickerComponent.d.ets +++ b/api/@ohos.file.PhotoPickerComponent.d.ets @@ -566,7 +566,7 @@ export declare class BaseItemInfo { * @type { ?photoAccessHelper.PhotoSubtype } * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @atomicservice - * @since 20 + * @since 21 */ photoSubType?: photoAccessHelper.PhotoSubtype; @@ -577,7 +577,7 @@ export declare class BaseItemInfo { * @type { ?photoAccessHelper.DynamicRangeType } * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @atomicservice - * @since 20 + * @since 21 */ dynamicRangeType?: photoAccessHelper.DynamicRangeType; @@ -587,7 +587,7 @@ export declare class BaseItemInfo { * @type { ?number } * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core * @atomicservice - * @since 20 + * @since 21 */ orientation?: number; } -- Gitee