Signed-off-by: kecan <kecan1@huawei.com>

add clone interface
This commit is contained in:
kecan 2024-11-01 14:45:10 +08:00
parent 6f2cfbb06b
commit 026de17d2d

View File

@ -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.
*