diff --git a/api/@ohos.file.PhotoPickerComponent.d.ets b/api/@ohos.file.PhotoPickerComponent.d.ets index 52885ab0e0a6ceaf1110393a097b0ce687f9727d..a7ad350b001d2dbe151cf366c8cd852fcb7d4e3b 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; + + /** + * Orientation. Image/Video orientation information. + * + * @type { ?number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + orientation?: 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; } /** diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index 3001a74c21c96bcc332faa888c67427a7aac3858..c2d7100f80628eaca92b8d552305898e9695a2c7 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -7262,6 +7262,110 @@ declare namespace photoAccessHelper { BROWSER_AND_SELECT_MODE = 2 } + /** + * Media file video duration filtering configuration. + * + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + class PhotoViewMimeTypeFileSizeFilter{ + /** + * Specifing filter Type. + * + * @type { PhotoViewMIMETypes } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + photoViewMimeType: PhotoViewMIMETypes; + + /** + * Specifing file size filtering configuration. + * + * @type { FileSizeFilter } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + sizeFilter: FileSizeFilter; + } + + /** + * Context information of the exit status of PhotoPicker, + * which can be used for on-site recovery of PhotoPicker next time. + * + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + class ContextRecoveryInfo{ + /** + * The album URI from which the user exited during the last selection. + * The default value is empty string. + * + * @type { string } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + albumUri: string; + + /** + * Enum value of the recommendation content selected by the user during the last selection (see `RecommendationType`). + * The default value is 0. + * + * @type { number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + selectedRecommendationType: number; + + /** + * Context data version number for validating compatibility of context recovery. + * + * @type { number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + version: number; + + /** + * Filename of the first fully visible photo in the last selection interface. + * The default value is empty string. + * + * @type { string } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + displayName: string; + + /** + * Enum value of the recommendation content set by the user during the last selection (see `RecommendationType`). + * The default value is 0. + * + * @type { number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + recommendationType: number; + + /** + * Timestamp of the first fully visible photo in the last selection interface. + * The default value is 0. + * + * @type { number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + time: number; + } + /** * Class BaseSelectOptions, which is extracted from class PhotoSelectOptions * @@ -7450,6 +7554,29 @@ declare namespace photoAccessHelper { * @since 19 */ videoDurationFilter?: VideoDurationFilter; + + /** + * Media file type and size combined filtering configuration. The array supports a maximum length of 3. + * Setting this parameter will cause the `fileSizeFilter` and `MIMEType` parameters to be ignored. + * + * @type { ?Array } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + photoViewMimeTypeFileSizeFilters?: Array; + + /** + * Configures filter conditions as a string array, supporting multiple combined + * conditions to specify supported file types. When this parameter is set, the + * original file type configuration parameters `MIMEType` and `mimeTypeFilter` become invalid. + * + * @type { ?Array } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + combinedMediaTypeFilter?: Array; } /** @@ -7632,6 +7759,16 @@ declare namespace photoAccessHelper { * @since 18 */ userId?: number; + + /** + * Context recovery information for restoring the last selection session. + * + * @type { ?ContextRecoveryInfo } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + contextRecoveryInfo?: ContextRecoveryInfo; } /** @@ -7772,6 +7909,16 @@ declare namespace photoAccessHelper { * @since 12 */ isOriginalPhoto: boolean; + + /** + * Contextual information about the PhotoPicker's exit state. + * + * @type { ContextRecoveryInfo } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + contextRecoveryInfo: ContextRecoveryInfo; } /**