JNIEnv.CallNonvirtualBooleanMethod 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.
Overloads
| Name | Description |
|---|---|
| CallNonvirtualBooleanMethod(IntPtr, IntPtr, IntPtr) |
Invokes a parameterless Java instance method using the implementation selected by the specified class. |
| CallNonvirtualBooleanMethod(IntPtr, IntPtr, IntPtr, JValue*) |
Calls a Java instance method that returns a Java |
| CallNonvirtualBooleanMethod(IntPtr, IntPtr, IntPtr, JValue[]) |
Calls a Java instance method that returns a Java |
CallNonvirtualBooleanMethod(IntPtr, IntPtr, IntPtr)
Invokes a parameterless Java instance method using the implementation selected by the specified class.
public static bool CallNonvirtualBooleanMethod(IntPtr jobject, IntPtr jclass, IntPtr jmethod);
static member CallNonvirtualBooleanMethod : nativeint * nativeint * nativeint -> bool
Parameters
- jobject
-
IntPtr
nativeint
A valid, non-null JNI reference to the Java object on which the method runs.
- jclass
-
IntPtr
nativeint
A valid, non-null JNI reference to the class used to obtain jmethod. The class must be the object's class or one of its supertypes.
- jmethod
-
IntPtr
nativeint
The identifier of a parameterless instance method obtained from jclass. The method must return a Java boolean.
Returns
The Boolean value returned by the invoked Java method.
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.
Applies to
CallNonvirtualBooleanMethod(IntPtr, IntPtr, IntPtr, JValue*)
Calls a Java instance method that returns a Java boolean, selecting its implementation from the specified class.
public static bool CallNonvirtualBooleanMethod(IntPtr jobject, IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue* parms);
static member CallNonvirtualBooleanMethod : nativeint * nativeint * nativeint * nativeptr<Android.Runtime.JValue> -> bool
Parameters
- jobject
-
IntPtr
nativeint
A live, non-null JNI object reference from the current VM, usable on the calling thread until the call returns or throws.
- jclass
-
IntPtr
nativeint
A live, non-null JNI class reference for the object's class or one of its supertypes, usable on the calling thread until the call returns or throws.
- jmethod
-
IntPtr
nativeint
A live instance method ID obtained for jclass. Its JNI signature must match the arguments and return a Java boolean. Keep its declaring class live.
- parms
- JValue*
A pointer to the arguments in JNI order and types. The storage must be readable for the argument count. Do not change the storage during the call, and keep referenced objects live.
Returns
The value returned by the Java method.
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.
Applies to
CallNonvirtualBooleanMethod(IntPtr, IntPtr, IntPtr, JValue[])
Calls a Java instance method that returns a Java boolean, selecting its implementation from the specified class.
public static bool CallNonvirtualBooleanMethod(IntPtr jobject, IntPtr jclass, IntPtr jmethod, params Android.Runtime.JValue[] parms);
static member CallNonvirtualBooleanMethod : nativeint * nativeint * nativeint * Android.Runtime.JValue[] -> bool
Parameters
- jobject
-
IntPtr
nativeint
A live, non-null JNI object reference from the current VM, usable on the calling thread until the call returns or throws.
- jclass
-
IntPtr
nativeint
A live, non-null JNI class reference for the object's class or one of its supertypes, usable on the calling thread until the call returns or throws.
- jmethod
-
IntPtr
nativeint
A live instance method ID obtained for jclass. Its JNI signature must match the arguments and return a Java boolean. Keep its declaring class live.
- parms
- JValue[]
All arguments in JNI order and types. Do not change the array during the call, and keep referenced objects live.
Returns
The value returned by the Java method.
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.