Language

JValue Constructors

Definition

Overloads

Name Description
JValue(IJavaObject)

Creates a JValue from an IJavaObject instance, corresponding to a JNI jobject reference.

JValue(Boolean)

Creates a JValue from a Boolean value, corresponding to the JNI jboolean type.

JValue(Char)

Creates a JValue from a Char value, corresponding to the JNI jchar type.

JValue(Double)

Creates a JValue from a Double value, corresponding to the JNI jdouble type.

JValue(Int16)

Creates a JValue from a Int16 value, corresponding to the JNI jshort type.

JValue(Int32)

Creates a JValue from an Int32 value, corresponding to the JNI jint type.

JValue(Int64)

Creates a JValue from a Int64 value, corresponding to the JNI jlong type.

JValue(IntPtr)

Creates a JValue from an IntPtr value, corresponding to a JNI jobject reference.

JValue(SByte)

Creates a JValue from an SByte value, corresponding to the JNI jbyte type.

JValue(Single)

Creates a JValue from a Single value, corresponding to the JNI jfloat type.

JValue(IJavaObject)

Creates a JValue from an IJavaObject instance, corresponding to a JNI jobject reference.

public JValue(Android.Runtime.IJavaObject value);
new Android.Runtime.JValue : Android.Runtime.IJavaObject -> Android.Runtime.JValue

Parameters

value
IJavaObject

The Java object instance. If null, the resulting JValue will contain Zero.

Remarks

This constructor extracts the Handle from the provided object, or passes Zero if the object is null.

Applies to

JValue(Boolean)

Creates a JValue from a Boolean value, corresponding to the JNI jboolean type.

public JValue(bool value);
new Android.Runtime.JValue : bool -> Android.Runtime.JValue

Parameters

value
Boolean

The Boolean value.

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

JValue(Char)

Creates a JValue from a Char value, corresponding to the JNI jchar type.

public JValue(char value);
new Android.Runtime.JValue : char -> Android.Runtime.JValue

Parameters

value
Char

The character value.

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

JValue(Double)

Creates a JValue from a Double value, corresponding to the JNI jdouble type.

public JValue(double value);
new Android.Runtime.JValue : double -> Android.Runtime.JValue

Parameters

value
Double

The double-precision floating-point value.

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

JValue(Int16)

Creates a JValue from a Int16 value, corresponding to the JNI jshort type.

public JValue(short value);
new Android.Runtime.JValue : int16 -> Android.Runtime.JValue

Parameters

value
Int16

The short integer value.

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

JValue(Int32)

Creates a JValue from an Int32 value, corresponding to the JNI jint type.

public JValue(int value);
new Android.Runtime.JValue : int -> Android.Runtime.JValue

Parameters

value
Int32

The integer value.

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

JValue(Int64)

Creates a JValue from a Int64 value, corresponding to the JNI jlong type.

public JValue(long value);
new Android.Runtime.JValue : int64 -> Android.Runtime.JValue

Parameters

value
Int64

The long integer value.

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

JValue(IntPtr)

Creates a JValue from an IntPtr value, corresponding to a JNI jobject reference.

public JValue(IntPtr value);
new Android.Runtime.JValue : nativeint -> Android.Runtime.JValue

Parameters

value
IntPtr

nativeint

The raw JNI object reference handle.

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

JValue(SByte)

Creates a JValue from an SByte value, corresponding to the JNI jbyte type.

public JValue(sbyte value);
new Android.Runtime.JValue : sbyte -> Android.Runtime.JValue

Parameters

value
SByte

The signed byte value.

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

JValue(Single)

Creates a JValue from a Single value, corresponding to the JNI jfloat type.

public JValue(float value);
new Android.Runtime.JValue : single -> Android.Runtime.JValue

Parameters

value
Single

The single-precision floating-point value.

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