5#include "flutter/fml/platform/android/jni_weak_ref.h"
7#include "flutter/fml/logging.h"
8#include "flutter/fml/platform/android/jni_util.h"
22 : obj_(
env->NewWeakGlobalRef(obj)) {
48 real =
env->NewLocalRef(obj);
56void JavaObjectWeakGlobalRef::Assign(
const JavaObjectWeakGlobalRef& other) {
63 env->DeleteWeakGlobalRef(obj_);
66 obj_ = other.obj_ ?
env->NewWeakGlobalRef(other.obj_) : NULL;
void operator=(const JavaObjectWeakGlobalRef &rhs)
ScopedJavaLocalRef< jobject > get(JNIEnv *env) const
JavaObjectWeakGlobalRef()
virtual ~JavaObjectWeakGlobalRef()
#define FML_DLOG(severity)
#define FML_DCHECK(condition)
JNIEnv * AttachCurrentThread()
ScopedJavaLocalRef< jobject > GetRealObject(JNIEnv *env, jweak obj)