• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FRAMEWORKS_ANI_SRC_INCLUDE_MOVING_PHOTO_ANI_H
17 #define FRAMEWORKS_ANI_SRC_INCLUDE_MOVING_PHOTO_ANI_H
18 
19 #include <ani.h>
20 #include "ani_error.h"
21 #include "media_library_enum_ani.h"
22 
23 namespace OHOS {
24 namespace Media {
25 class MovingPhotoAni {
26 public:
27     static ani_status MovingPhotoInit(ani_env *env);
28     static ani_object Constructor([[maybe_unused]] ani_env *env, [[maybe_unused]] ani_class clazz,
29         [[maybe_unused]] ani_object context);
30     static MovingPhotoAni* Unwrap(ani_env *env, ani_object object);
31     static void RequestContent1(ani_env *env, ani_object object, ani_string imageFileUri, ani_string videoFileUri);
32     static void RequestContent2(ani_env *env, ani_object object, ani_enum_item resourceType, ani_string fileUri);
33     static void RequestContent3(ani_env *env, ani_object object, ani_enum_item resourceType);
34     static ani_string GetUri(ani_env *env, ani_object object);
35 
36 private:
37     std::string GetUriInner();
38     std::string photoUri_;
39 };
40 
41 } // namespace Media
42 } // namespace OHOS
43 
44 #endif // FRAMEWORKS_ANI_SRC_INCLUDE_MOVING_PHOTO_ANI_H