Monado OpenXR Runtime
android_looper.h
Go to the documentation of this file.
1// Copyright 2021, Qualcomm Innovation Center, Inc.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Utility functions for android looper.
6 * @author Jarvis Huang
7 * @ingroup aux_android
8 */
9
10#pragma once
11
12#include <xrt/xrt_config_os.h>
13
14#ifdef XRT_OS_ANDROID
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20struct _JavaVM;
21
22/*!
23 * Poll the looper until activity is in resume state.
24 */
25void
26android_looper_poll_until_activity_resumed(struct _JavaVM *vm, void *activity);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif // XRT_OS_ANDROID
Auto detect OS and certain features.