Monado OpenXR Runtime
xrt_android.h File Reference

Header holding Android-specific details. More...

#include "xrt/xrt_config_os.h"
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_results.h"
#include <stdbool.h>
Include dependency graph for xrt_android.h:

Go to the source code of this file.

Typedefs

typedef 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. More...
 

Enumerations

enum  xrt_android_lifecycle_event {
  XRT_ANDROID_LIVECYCLE_EVENT_ON_CREATE = 1 << 0 , XRT_ANDROID_LIVECYCLE_EVENT_ON_DESTROY = 1 << 1 , XRT_ANDROID_LIVECYCLE_EVENT_ON_PAUSE = 1 << 2 , XRT_ANDROID_LIVECYCLE_EVENT_ON_RESUME = 1 << 3 ,
  XRT_ANDROID_LIVECYCLE_EVENT_ON_START = 1 << 4 , XRT_ANDROID_LIVECYCLE_EVENT_ON_STOP = 1 << 5
}
 Distinguishes the possible Android lifecycle events from each other. More...
 

Detailed Description

Header holding Android-specific details.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Typedef Documentation

◆ xrt_android_lifecycle_event_handler_t

typedef 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.

Return true to be removed from the callback list.

Enumeration Type Documentation

◆ xrt_android_lifecycle_event

Distinguishes the possible Android lifecycle events from each other.

Used as a bitmask when registering for callbacks.