The open source OpenXR runtime
1// Copyright 2020-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3// Author: Rylie Pavlik <rylie.pavlik@collabora.com>
4// Inline implementations: do not include on its own!
5
6#pragma once
7
8#include "android.content.h"
9#include <string>
10
11namespace wrap {
12namespace android::app {
13
14inline jni::Object Activity::getWindow() {
15 assert(!isNull());
16 return object().call<jni::Object>(Meta::data().getWindow);
17}
18
19inline void
20Activity::setVrModeEnabled(bool enabled,
21 content::ComponentName const &requestedComponent) {
22 assert(!isNull());
23 return object().call<void>(Meta::data().setVrModeEnabled, enabled,
24 requestedComponent.object());
25}
26
27} // namespace android::app
28} // namespace wrap