Ocean
Loading...
Searching...
No Matches
media/android/Android.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_MEDIA_ANDROID_ANDROID_H
9#define META_OCEAN_MEDIA_ANDROID_ANDROID_H
10
11#include "ocean/media/Media.h"
12
13#ifndef _ANDROID
14 #error This library is available on Android platforms only!
15#endif
16
17namespace Ocean
18{
19
20namespace Media
21{
22
23namespace Android
24{
25
26/**
27 * @ingroup media
28 * @defgroup mediaandroid Ocean Media Android Library
29 * @{
30 * The Ocean Media Android Library provides camera access functionalities on android platforms.
31 * The library is available on android platforms only.
32 * @}
33 */
34
35/**
36 * @namespace Ocean::Media::Android Namespace of the Media Android library.<p>
37 * The Namespace Ocean::Media::Android is used in the entire Ocean Media Android Library.
38 */
39
40// Defines OCEAN_MEDIA_A_EXPORT for dll export and import.
41#if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
42 #ifdef USE_OCEAN_MEDIA_A_EXPORT
43 #define OCEAN_MEDIA_A_EXPORT __declspec(dllexport)
44 #else
45 #define OCEAN_MEDIA_A_EXPORT __declspec(dllimport)
46 #endif
47#else
48 #define OCEAN_MEDIA_A_EXPORT
49#endif
50
51/**
52 * Returns the name of this media library.
53 * @ingroup mediaandroid
54 */
55OCEAN_MEDIA_A_EXPORT std::string nameAndroidLibrary();
56
57#ifdef OCEAN_RUNTIME_STATIC
58
59/**
60 * Registers this media library at the global library manager.
61 * This function calls ALibrary::registerLibrary() only.
62 * @ingroup mediaandroid
63 */
65
66/**
67 * Unregisters this media library at the global library manager.
68 * This function calls ALibrary::unregisterLibrary() only.
69 * @return True, if succeeded
70 * @ingroup mediaandroid
71 */
73
74#endif // OCEAN_RUNTIME_STATIC
75
76}
77
78}
79
80}
81
82#endif // META_OCEAN_MEDIA_ANDROID_ANDROID_H
bool unregisterAndroidLibrary()
Unregisters this media library at the global library manager.
OCEAN_MEDIA_A_EXPORT std::string nameAndroidLibrary()
Returns the name of this media library.
void registerAndroidLibrary()
Registers this media library at the global library manager.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15