// Copyright 2020-2021, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 // Author: Rylie Pavlik // Inline implementations: do not include on its own! #pragma once #include "android.content.h" #include namespace wrap { namespace android::app { inline jni::Object Activity::getWindow() { assert(!isNull()); return object().call(Meta::data().getWindow); } inline void Activity::setVrModeEnabled(bool enabled, content::ComponentName const &requestedComponent) { assert(!isNull()); return object().call(Meta::data().setVrModeEnabled, enabled, requestedComponent.object()); } } // namespace android::app } // namespace wrap