Functions for Android-specific global state.
More...
#include "android_globals.h"
#include <stddef.h>
#include <wrap/android.app.h>
|
void | android_globals_store_vm_and_activity (struct _JavaVM *vm, void *activity) |
|
void | android_globals_store_vm_and_context (struct _JavaVM *vm, void *context) |
|
bool | android_globals_is_instance_of_activity (struct _JavaVM *vm, void *obj) |
|
void | android_globals_store_window (struct _ANativeWindow *window) |
|
struct _ANativeWindow * | android_globals_get_window () |
|
struct _JavaVM * | android_globals_get_vm () |
|
void * | android_globals_get_activity () |
|
void * | android_globals_get_context () |
|
|
struct { |
struct _JavaVM * vm = nullptr |
|
jni::Object activity = {} |
|
jni::Object context = {} |
|
struct _ANativeWindow * window = nullptr |
|
} | android_globals |
|
struct { ... } android_globals |
- Todo:
- Do we need locking here?