JniRuntime.JniObjectReferenceManager.CreateWeakGlobalReference Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a weak global reference without disposing the source reference.
public virtual Java.Interop.JniObjectReference CreateWeakGlobalReference(Java.Interop.JniObjectReference reference);
abstract member CreateWeakGlobalReference : Java.Interop.JniObjectReference -> Java.Interop.JniObjectReference
override this.CreateWeakGlobalReference : Java.Interop.JniObjectReference -> Java.Interop.JniObjectReference
Parameters
- reference
- JniObjectReference
The source reference whose Java object is to receive a weak global reference.
Returns
The new weak global reference, or reference unchanged if its handle is zero.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.