Skip to content
0.2.0-dev Download ZIP
32 lines ·912 B Raw
1// Copyright (c) 2020-2026 The Khronos Group Inc.
2// Copyright (c) 2020-2021, Collabora, Ltd.
3//
4// SPDX-License-Identifier: Apache-2.0 OR MIT
5//
6// Initial Author: Rylie Pavlik <rylie.pavlik@collabora.com>
7
8#pragma once
9#ifdef __ANDROID__
10
11#include "wrap/android.content.h"
12
13#include <string>
14namespace Json {
15class Value;
16} // namespace Json
17
18namespace openxr_android {
19using wrap::android::content::Context;
20
21/*!
22 * Find the single active OpenXR runtime on the system, and return a constructed JSON object representing it.
23 *
24 * @param context An Android context, preferably an Activity Context.
25 * @param[out] virtualManifest The Json::Value to fill with the virtual manifest.
26 *
27 * @return 0 on success, something else on failure.
28 */
29int getActiveRuntimeVirtualManifest(wrap::android::content::Context const &context, Json::Value &virtualManifest);
30} // namespace openxr_android
31
32#endif // __ANDROID__