From c157419d3e7cde4703f088348087c0404d0388dc Mon Sep 17 00:00:00 2001 From: mabo26 Date: Mon, 16 Jun 2025 21:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0getRecentPhotoInfo=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mabo26 --- api/@ohos.file.photoAccessHelper.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index 8bdfa70e26..45964489c8 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -23,6 +23,7 @@ import type Context from './application/Context'; import type image from './@ohos.multimedia.image'; import type dataSharePredicates from './@ohos.data.dataSharePredicates'; import type { CustomColors } from './@ohos.arkui.theme'; +import type { RecentPhotoOptions, RecentPhotoInfo } from './ohos.file.RecentPhotoComponent'; /** * Helper functions to access image and video assets @@ -5780,6 +5781,17 @@ declare namespace photoAccessHelper { */ createAssetsForAppWithAlbum(source: PhotoCreationSource, albumUri: string, isAuthorized: boolean, photoCreationConfigs: Array): Promise>; + /** + * Get recent photo or video info by options + * + * @param { RecentPhotoOptions } options - options for recent photo + * @returns { Promise } - Returns the recent photo info + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @atomicservice + * @since 20 + */ + getRecentPhotoInfo(options: RecentPhotoOptions): Promise; + /** * Register the callback of photo changes. * -- Gitee