JniEnvironment.Types.GetTypeFromInstance(JniObjectReference) 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 an owned type wrapper for an object's runtime Java class.
public static Java.Interop.JniType? GetTypeFromInstance(Java.Interop.JniObjectReference instance);
static member GetTypeFromInstance : Java.Interop.JniObjectReference -> Java.Interop.JniType
Parameters
- instance
- JniObjectReference
A Java object reference, or an invalid reference.
Returns
A type wrapper that the caller must dispose, or null if the instance or resulting class reference is invalid.
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.