Language

JNIEnv.CallFloatMethod Method

Definition

Overloads

Name Description
CallFloatMethod(IntPtr, IntPtr)

Calls a Java instance method that returns a single-precision floating-point value.

CallFloatMethod(IntPtr, IntPtr, JValue*)

Calls a Java instance method that returns a single-precision floating-point value.

CallFloatMethod(IntPtr, IntPtr, JValue[])

Calls a Java instance method that returns a single-precision floating-point value.

CallFloatMethod(IntPtr, IntPtr)

Calls a Java instance method that returns a single-precision floating-point value.

public static float CallFloatMethod(IntPtr jobject, IntPtr jmethod);
static member CallFloatMethod : nativeint * nativeint -> single

Parameters

jobject
IntPtr

nativeint

A live JNI object reference from the current VM, usable on the calling thread until the call returns or throws.

jmethod
IntPtr

nativeint

A live instance method ID applicable to jobject. Its JNI signature must take no arguments and return a Java float. Keep its declaring class 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

CallFloatMethod(IntPtr, IntPtr, JValue*)

Calls a Java instance method that returns a single-precision floating-point value.

public static float CallFloatMethod(IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue* parms);
static member CallFloatMethod : nativeint * nativeint * nativeptr<Android.Runtime.JValue> -> single

Parameters

jobject
IntPtr

nativeint

A live JNI object reference from the current VM, usable on the calling thread until the call returns or throws.

jmethod
IntPtr

nativeint

A live instance method ID applicable to jobject. Its JNI signature must match the arguments and return a Java float. Keep its declaring class live.

parms
JValue*

Arguments in JNI order and types. The pointer 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

CallFloatMethod(IntPtr, IntPtr, JValue[])

Calls a Java instance method that returns a single-precision floating-point value.

public static float CallFloatMethod(IntPtr jobject, IntPtr jmethod, params Android.Runtime.JValue[] parms);
static member CallFloatMethod : nativeint * nativeint * Android.Runtime.JValue[] -> single

Parameters

jobject
IntPtr

nativeint

A live JNI object reference from the current VM, usable on the calling thread until the call returns or throws.

jmethod
IntPtr

nativeint

A live instance method ID applicable to jobject. Its JNI signature must match the arguments and return a Java float. 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.

Applies to