diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index 8bdfa70e266abb4c15d6689f5cb74530b045bbb2..45964489c8bf7d2d97394d2187e050301bb83f4a 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. *