mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
Signed-off-by: kecan <kecan1@huawei.com>
add clone interface
This commit is contained in:
parent
6f2cfbb06b
commit
026de17d2d
14
api/@ohos.file.photoAccessHelper.d.ts
vendored
14
api/@ohos.file.photoAccessHelper.d.ts
vendored
@ -1653,6 +1653,20 @@ declare namespace photoAccessHelper {
|
||||
* @since 11
|
||||
*/
|
||||
getEditData(): Promise<MediaAssetEditData>;
|
||||
/**
|
||||
* Clone asset.
|
||||
*
|
||||
* @permission ohos.permission.READ_IMAGEVIDEO
|
||||
* @param { string } title - The title of asset.
|
||||
* @returns { Promise<PhotoAsset> } Returns asset
|
||||
* @throws { BusinessError } 201 - Permission denied
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* <br>2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 14000011 - System inner fail
|
||||
* @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core
|
||||
* @since 14
|
||||
*/
|
||||
clone(title: string): Promise<PhotoAsset>;
|
||||
/**
|
||||
* Requests the read-only FD of the source asset.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user