Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType Class Reference

Public Member Functions

 InputType (@NonNull TextInputType type, boolean isSigned, boolean isDecimal)
 

Static Public Member Functions

static InputType fromJson (@NonNull JSONObject json) throws JSONException, NoSuchFieldException
 

Public Attributes

final TextInputType type
 
final boolean isSigned
 
final boolean isDecimal
 

Detailed Description

A text input type.

If the type is TextInputType#NUMBER, this InputType also reports whether that number isSigned and isDecimal.

Definition at line 687 of file TextInputChannel.java.

Constructor & Destructor Documentation

◆ InputType()

io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.InputType ( @NonNull TextInputType  type,
boolean  isSigned,
boolean  isDecimal 
)
inline

Member Function Documentation

◆ fromJson()

static InputType io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.fromJson ( @NonNull JSONObject  json) throws JSONException, NoSuchFieldException
inlinestatic

Definition at line 689 of file TextInputChannel.java.

690 {
691 return new InputType(
692 TextInputType.fromValue(json.getString("name")),
693 json.optBoolean("signed", false),
694 json.optBoolean("decimal", false));
695 }
InputType(@NonNull TextInputType type, boolean isSigned, boolean isDecimal)

Member Data Documentation

◆ isDecimal

final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.isDecimal

Definition at line 699 of file TextInputChannel.java.

◆ isSigned

final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.isSigned

Definition at line 698 of file TextInputChannel.java.

◆ type

final TextInputType io.flutter.embedding.engine.systemchannels.TextInputChannel.InputType.type

Definition at line 697 of file TextInputChannel.java.


The documentation for this class was generated from the following file: