17777dab0Sopenharmony_ci/*
27777dab0Sopenharmony_ci * Copyright (C) 2024 Huawei Device Co., Ltd.
37777dab0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
47777dab0Sopenharmony_ci * you may not use this file except in compliance with the License.
57777dab0Sopenharmony_ci * You may obtain a copy of the License at
67777dab0Sopenharmony_ci *
77777dab0Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
87777dab0Sopenharmony_ci *
97777dab0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
107777dab0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
117777dab0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127777dab0Sopenharmony_ci * See the License for the specific language governing permissions and
137777dab0Sopenharmony_ci * limitations under the License.
147777dab0Sopenharmony_ci */
157777dab0Sopenharmony_ci
167777dab0Sopenharmony_ci/**
177777dab0Sopenharmony_ci * @addtogroup MediaAssetManager
187777dab0Sopenharmony_ci * @{
197777dab0Sopenharmony_ci *
207777dab0Sopenharmony_ci * @brief Provides APIs of request capability for Media Source.
217777dab0Sopenharmony_ci *
227777dab0Sopenharmony_ci * @since 12
237777dab0Sopenharmony_ci */
247777dab0Sopenharmony_ci
257777dab0Sopenharmony_ci/**
267777dab0Sopenharmony_ci * @file media_access_helper_capi.h
277777dab0Sopenharmony_ci *
287777dab0Sopenharmony_ci * @brief Defines APIs related to media assess helper.
297777dab0Sopenharmony_ci *
307777dab0Sopenharmony_ci * Provides the ability to create photo albums, as well as access and modify media data information in the albums.
317777dab0Sopenharmony_ci *
327777dab0Sopenharmony_ci * @kit MediaLibraryKit
337777dab0Sopenharmony_ci * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core
347777dab0Sopenharmony_ci * @library libmedia_asset_manager.so
357777dab0Sopenharmony_ci * @since 12
367777dab0Sopenharmony_ci */
377777dab0Sopenharmony_ci
387777dab0Sopenharmony_ci#ifndef MULTIMEDIA_MEDIA_LIBRARY_NATIVE_MEDIA_ACCESS_HELPER_H
397777dab0Sopenharmony_ci#define MULTIMEDIA_MEDIA_LIBRARY_NATIVE_MEDIA_ACCESS_HELPER_H
407777dab0Sopenharmony_ci
417777dab0Sopenharmony_ci#include "media_asset_base_capi.h"
427777dab0Sopenharmony_ci
437777dab0Sopenharmony_ci#ifdef __cplusplus
447777dab0Sopenharmony_ciextern "C" {
457777dab0Sopenharmony_ci#endif
467777dab0Sopenharmony_ci
477777dab0Sopenharmony_ci/**
487777dab0Sopenharmony_ci * @brief Apply the change request of asset or album.
497777dab0Sopenharmony_ci *
507777dab0Sopenharmony_ci * @permission ohos.permission.WRITE_IMAGEVIDEO
517777dab0Sopenharmony_ci * @param changeRequest the {@link OH_MediaAssetChangeRequest} instance to be applied.
527777dab0Sopenharmony_ci * @return {@link #MEDIA_LIBRARY_OK} if the method call succeeds.
537777dab0Sopenharmony_ci *         {@link #MEDIA_LIBRARY_PARAMETER_ERROR} Parameter error. Possible causes:
547777dab0Sopenharmony_ci *                                                1. Mandatory parameters are left unspecified.
557777dab0Sopenharmony_ci *                                                2. Incorrect parameter types.
567777dab0Sopenharmony_ci *                                                3. Parameter verification failed.
577777dab0Sopenharmony_ci *         {@link #MEDIA_LIBRARY_PERMISSION_DENIED} Permission is denied.
587777dab0Sopenharmony_ci *         {@link #MEDIA_LIBRARY_INTERNAL_SYSTEM_ERROR} if internal system error.
597777dab0Sopenharmony_ci * @since 12
607777dab0Sopenharmony_ci*/
617777dab0Sopenharmony_ciMediaLibrary_ErrorCode OH_MediaAccessHelper_ApplyChanges(OH_MediaAssetChangeRequest* changeRequest);
627777dab0Sopenharmony_ci
637777dab0Sopenharmony_ci#ifdef __cplusplus
647777dab0Sopenharmony_ci}
657777dab0Sopenharmony_ci#endif
667777dab0Sopenharmony_ci
677777dab0Sopenharmony_ci#endif // MULTIMEDIA_MEDIA_LIBRARY_NATIVE_MEDIA_ACCESS_HELPER_H
687777dab0Sopenharmony_ci/** @} */