openharmony 鸿蒙 capi-media-access-helper-capi-h

2025-06-12 浏览 (1)

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: <multimedia/media_library/media_access_helper_capi.h>

System capability: SystemCapability.FileManagement.PhotoAccessHelper.Core

Since: 12

Related module: MediaAssetManager

Summary

Functions

NameDescription
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

ParameterDescription
OH_MediaAssetChangeRequest* changeRequestChange request.

Return value

TypeDescription
MediaLibrary_ErrorCodeMEDIA_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

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/VqwQYD