共用方式為


JsonWriter.Value Method

Definition

Overloads

Value(Number)

Encodes value.

Value(Boolean)

Encodes value.

Value(Double)

Encodes value.

Value(Int64)

Encodes value.

Value(String)

Encodes value.

Value(Number)

Encodes value.

[Android.Runtime.Register("value", "(Ljava/lang/Number;)Landroid/util/JsonWriter;", "")]
public Android.Util.JsonWriter? Value (Java.Lang.Number? value);
[<Android.Runtime.Register("value", "(Ljava/lang/Number;)Landroid/util/JsonWriter;", "")>]
member this.Value : Java.Lang.Number -> Android.Util.JsonWriter

Parameters

value
Number

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities unless this writer is lenient.

Returns

this writer.

Attributes

Exceptions

Remarks

Encodes value.

Java documentation for android.util.JsonWriter.value(java.lang.Number).

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

Value(Boolean)

Encodes value.

[Android.Runtime.Register("value", "(Z)Landroid/util/JsonWriter;", "")]
public Android.Util.JsonWriter? Value (bool value);
[<Android.Runtime.Register("value", "(Z)Landroid/util/JsonWriter;", "")>]
member this.Value : bool -> Android.Util.JsonWriter

Parameters

value
Boolean

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities unless this writer is lenient.

Returns

this writer.

Attributes

Exceptions

Remarks

Encodes value.

Java documentation for android.util.JsonWriter.value(boolean).

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

Value(Double)

Encodes value.

[Android.Runtime.Register("value", "(D)Landroid/util/JsonWriter;", "")]
public Android.Util.JsonWriter? Value (double value);
[<Android.Runtime.Register("value", "(D)Landroid/util/JsonWriter;", "")>]
member this.Value : double -> Android.Util.JsonWriter

Parameters

value
Double

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities unless this writer is lenient.

Returns

this writer.

Attributes

Exceptions

Remarks

Encodes value.

Java documentation for android.util.JsonWriter.value(double).

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

Value(Int64)

Encodes value.

[Android.Runtime.Register("value", "(J)Landroid/util/JsonWriter;", "")]
public Android.Util.JsonWriter? Value (long value);
[<Android.Runtime.Register("value", "(J)Landroid/util/JsonWriter;", "")>]
member this.Value : int64 -> Android.Util.JsonWriter

Parameters

value
Int64

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities unless this writer is lenient.

Returns

this writer.

Attributes

Exceptions

Remarks

Encodes value.

Java documentation for android.util.JsonWriter.value(long).

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

Value(String)

Encodes value.

[Android.Runtime.Register("value", "(Ljava/lang/String;)Landroid/util/JsonWriter;", "")]
public Android.Util.JsonWriter? Value (string? value);
[<Android.Runtime.Register("value", "(Ljava/lang/String;)Landroid/util/JsonWriter;", "")>]
member this.Value : string -> Android.Util.JsonWriter

Parameters

value
String

the literal string value, or null to encode a null literal.

Returns

this writer.

Attributes

Exceptions

Remarks

Encodes value.

Java documentation for android.util.JsonWriter.value(java.lang.String).

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