JniRuntime.JniObjectReferenceManager.CreateGlobalReference 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 global reference without disposing the source reference.
public virtual Java.Interop.JniObjectReference CreateGlobalReference(Java.Interop.JniObjectReference reference);
abstract member CreateGlobalReference : Java.Interop.JniObjectReference -> Java.Interop.JniObjectReference
override this.CreateGlobalReference : Java.Interop.JniObjectReference -> Java.Interop.JniObjectReference
Parameters
- reference
- JniObjectReference
The source reference whose Java object is to receive a global reference.
Returns
The new 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.