mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
!10791 媒体库新增loadMovingPhoto接口
Merge pull request !10791 from jjwwgnw/master
This commit is contained in:
commit
dee5a49c6a
19
api/@ohos.file.photoAccessHelper.d.ts
vendored
19
api/@ohos.file.photoAccessHelper.d.ts
vendored
@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user