harmony 鸿蒙media_access_helper_capi.h

  • 2025-06-12
  • 浏览 (4)

media_access_helper_capi.h

Overview

The media_access_helper_capi.h file declares the APIs for album management.

You can use the APIs to create an album, and access and modify the media data in the album.

Library: libmedia_asset_manager.so

File to include:

System capability: SystemCapability.FileManagement.PhotoAccessHelper.Core

Since: 12

Related module: MediaAssetManager

Summary

Functions

|Name|Description| |–|–| |MediaLibrary_ErrorCode OH_MediaAccessHelper_ApplyChanges(OH_MediaAssetChangeRequest* changeRequest)|Applies changes to an asset or album.|

Function Description

OH_MediaAccessHelper_ApplyChanges()

MediaLibrary_ErrorCode OH_MediaAccessHelper_ApplyChanges(OH_MediaAssetChangeRequest* changeRequest)

Description

Applies changes to an asset or album.

Required permissions: ohos.permission.WRITE_IMAGEVIDEO

Since: 12

Parameters

|Parameter|Description| |–|–| |OH_MediaAssetChangeRequest* changeRequest|Change request.|

Return value

|Type|Description| |–|–| |MediaLibrary_ErrorCode|MEDIA_LIBRARY_OK: operation success.
MEDIA_LIBRARY_PARAMETER_ERROR: incorrect parameters. Possible reasons:
1. A mandatory parameter is not specified.
2. A parameter type is incorrect.
3. Parameter verification fails.
MEDIA_LIBRARY_PERMISSION_DENIED: access denied due to lack of permission.
MEDIA_LIBRARY_INTERNAL_SYSTEM_ERROR: internal system error.|

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Media Library Kit (Media File Management Service)

harmony 鸿蒙media_asset_base_capi.h

harmony 鸿蒙media_asset_capi.h

harmony 鸿蒙media_asset_change_request_capi.h

harmony 鸿蒙media_asset_manager_capi.h

harmony 鸿蒙MediaAssetManager

harmony 鸿蒙MediaLibrary_RequestId

harmony 鸿蒙MediaLibrary_RequestOptions

harmony 鸿蒙moving_photo_capi.h

harmony 鸿蒙OH_MediaAsset

0  赞