Monado OpenXR Runtime
|
Implementation of a callback collection for Android lifecycle events. More...
#include "android_lifecycle_callbacks.h"
#include "android_load_class.hpp"
#include "org.freedesktop.monado.auxiliary.hpp"
#include "xrt/xrt_config_android.h"
#include "xrt/xrt_android.h"
#include "util/u_logging.h"
#include "util/u_generic_callbacks.hpp"
#include "wrap/android.app.h"
#include <memory>
Data Structures | |
class | android_lifecycle_callbacks |
An object handling a collection of callbacks for the Android lifecycle. More... | |
Macros | |
#define | CATCH_CLAUSES(ACTION, RET) |
Functions | |
int | android_lifecycle_callbacks_invoke (struct android_lifecycle_callbacks *alc, enum xrt_android_lifecycle_event event) |
static void | on_activity_created (JNIEnv *env, jobject thiz, jlong native_callback_ptr, jobject activity) |
JNI functions. More... | |
static void | on_activity_started (JNIEnv *env, jobject thiz, jlong native_callback_ptr, jobject activity) |
static void | on_activity_resumed (JNIEnv *env, jobject thiz, jlong native_callback_ptr, jobject activity) |
static void | on_activity_paused (JNIEnv *env, jobject thiz, jlong native_callback_ptr, jobject activity) |
static void | on_activity_stopped (JNIEnv *env, jobject thiz, jlong native_callback_ptr, jobject activity) |
static void | on_activity_save_instance_state (JNIEnv *env, jobject thiz, jlong native_callback_ptr, jobject activity) |
static void | on_activity_destroyed (JNIEnv *env, jobject thiz, jlong native_callback_ptr, jobject activity) |
int | android_lifecycle_callbacks_register_callback (struct android_lifecycle_callbacks *alc, xrt_android_lifecycle_event_handler_t callback, enum xrt_android_lifecycle_event event_mask, void *userdata) |
int | android_lifecycle_callbacks_remove_callback (struct android_lifecycle_callbacks *alc, xrt_android_lifecycle_event_handler_t callback, enum xrt_android_lifecycle_event event_mask, void *userdata) |
struct android_lifecycle_callbacks * | android_lifecycle_callbacks_create (struct xrt_instance_android *xinst_android) |
void | android_lifecycle_callbacks_destroy (struct android_lifecycle_callbacks **ptr_callbacks) |
Variables | |
static JNINativeMethod | methods [] |
Implementation of a callback collection for Android lifecycle events.
#define CATCH_CLAUSES | ( | ACTION, | |
RET | |||
) |
|
static |
JNI functions.
|
static |