Share via


JsonReader.NextDouble Method

Definition

Returns the JsonToken#NUMBER double value of the next token, consuming it.

[Android.Runtime.Register("nextDouble", "()D", "")]
public double NextDouble ();
[<Android.Runtime.Register("nextDouble", "()D", "")>]
member this.NextDouble : unit -> double

Returns

Attributes

Exceptions

if the next token is not a literal value.

Remarks

Returns the JsonToken#NUMBER double value of the next token, consuming it. If the next token is a string, this method will attempt to parse it as a double using Double#parseDouble(String).

Java documentation for android.util.JsonReader.nextDouble().

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