MCPcopy Create free account
hub / github.com/Snapchat/djinni / JavaWeakRef

Method JavaWeakRef

support-lib/jni/djinni_support.cpp:535–535  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

533public:
534 // Constructor
535 JavaWeakRef(jobject obj) : JavaWeakRef(jniGetThreadEnv(), obj) {}
536 JavaWeakRef(JNIEnv * jniEnv, jobject obj) : m_weakRef(create(jniEnv, obj)) {}
537
538 // Get the object pointed to if it's still strongly reachable or, return null if not.

Callers

nothing calls this directly

Calls 1

jniGetThreadEnvFunction · 0.85

Tested by

no test coverage detected