!10791 媒体库新增loadMovingPhoto接口

Merge pull request !10791 from jjwwgnw/master
This commit is contained in:
openharmony_ci 2024-05-08 04:30:29 +00:00 committed by Gitee
commit dee5a49c6a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -639,6 +639,25 @@ declare namespace photoAccessHelper {
fileUri: string,
dataHandler: MediaAssetDataHandler<boolean>
): Promise<string>;
/**
* Load moving photo
*
* @param { Context } context - Hap context information
* @param { string } imageFileUri - image file uri of the moving photo to be loaded
* @param { string } videoFileUri - video file uri of the moving photo to be loaded
* @returns { Promise<MovingPhoto> } Returns moving photo
* @throws { BusinessError } 401 - Invalid parameter
* @throws { BusinessError } 14000011 - Internal system error
* @static
* @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core
* @since 12
*/
static loadMovingPhoto(
context: Context,
imageFileUri: string,
videoFileUri: string
): Promise<MovingPhoto>;
}
/**