JValue Constructors
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 |
|---|---|
| JValue(IJavaObject) |
Creates a JValue from an IJavaObject instance,
corresponding to a JNI |
| JValue(Boolean) |
Creates a JValue from a Boolean value,
corresponding to the JNI |
| JValue(Char) |
Creates a JValue from a Char value,
corresponding to the JNI |
| JValue(Double) |
Creates a JValue from a Double value,
corresponding to the JNI |
| JValue(Int16) |
Creates a JValue from a Int16 value,
corresponding to the JNI |
| JValue(Int32) |
Creates a JValue from an Int32 value,
corresponding to the JNI |
| JValue(Int64) |
Creates a JValue from a Int64 value,
corresponding to the JNI |
| JValue(IntPtr) |
Creates a JValue from an IntPtr value,
corresponding to a JNI |
| JValue(SByte) |
Creates a JValue from an SByte value,
corresponding to the JNI |
| JValue(Single) |
Creates a JValue from a Single value,
corresponding to the JNI |
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)
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)
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)
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)
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)
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)
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)
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)
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)
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.