34 mObject(
object ?
aui::jni::env()->NewGlobalRef(
object) :
nullptr) {
38 mObject(
object.mObject ?
aui::jni::env()->NewGlobalRef(
object.mObject) :
nullptr) {
50 bool operator!()
const {
54 operator bool()
const {
60 jobject asObject()
const noexcept {
65 jclass asClass()
const noexcept {
66 return (jclass)mObject;
69 static void assignLocalRef(
GlobalRef& target, jobject value) {
71 target.mObject = value;
Global ref.
Definition: GlobalRef.h:23
JNIEnv * env()
Definition: Globals.h:38
#define AUI_ASSERT(condition)
Asserts that the passed condition evaluates to true.
Definition: Assert.h:55