Android.Util.JsonReader.NextInt Method
Returns the JsonToken.Number value of the next token, consuming it.

Syntax

[Android.Runtime.Register("nextInt", "()I", "")]
public int NextInt ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the next token is not a literal value.
Java.Lang.NumberFormatExceptionif the next literal value cannot be parsed as a number, or exactly represented as an int.
Java.IO.IOException

Remarks

Returns the JsonToken.Number value of the next token, consuming it. If the next token is a string, this method will attempt to parse it as an int. If the next token's numeric value cannot be exactly represented by a Java int, this method throws.

[Android Documentation]

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11