23struct xrt_instance_android;
33 XRT_ANDROID_LIVECYCLE_EVENT_ON_CREATE = 1 << 0,
34 XRT_ANDROID_LIVECYCLE_EVENT_ON_DESTROY = 1 << 1,
35 XRT_ANDROID_LIVECYCLE_EVENT_ON_PAUSE = 1 << 2,
36 XRT_ANDROID_LIVECYCLE_EVENT_ON_RESUME = 1 << 3,
37 XRT_ANDROID_LIVECYCLE_EVENT_ON_START = 1 << 4,
38 XRT_ANDROID_LIVECYCLE_EVENT_ON_STOP = 1 << 5,
61struct xrt_instance_android
80 struct _JavaVM *(*get_vm)(
const struct xrt_instance_android *xinst_android);
94 void *(*get_context)(
const struct xrt_instance_android *xinst_android);
109 xrt_result_t (*register_activity_lifecycle_callback)(
struct xrt_instance_android *xinst_android,
127 xrt_result_t (*remove_activity_lifecycle_callback)(
struct xrt_instance_android *xinst_android,
144static inline struct _JavaVM *
145xrt_instance_android_get_vm(
struct xrt_instance_android *xinst_android)
147 return xinst_android->get_vm(xinst_android);
158xrt_instance_android_get_context(
struct xrt_instance_android *xinst_android)
160 return xinst_android->get_context(xinst_android);
171xrt_instance_android_register_activity_lifecycle_callback(
struct xrt_instance_android *xinst_android,
176 return xinst_android->register_activity_lifecycle_callback(xinst_android, callback, event_mask, userdata);
187xrt_instance_android_remove_activity_lifecycle_callback(
struct xrt_instance_android *xinst_android,
192 return xinst_android->remove_activity_lifecycle_callback(xinst_android, callback, event_mask, userdata);
enum xrt_result xrt_result_t
Result type used across Monado.
Information provided by the application at instance create time.
Definition: xrt_instance.h:88
bool(* xrt_android_lifecycle_event_handler_t)(struct xrt_instance_android *xinst_android, enum xrt_android_lifecycle_event event, void *userdata)
A callback type for a handler of Android lifecycle events.
Definition: xrt_android.h:46
xrt_android_lifecycle_event
Distinguishes the possible Android lifecycle events from each other.
Definition: xrt_android.h:32
Header holding common defines.
Auto detect OS and certain features.
Internal result type for XRT.