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.Configuration.Autofill Class Reference

Public Member Functions

 Autofill ( @NonNull String uniqueIdentifier, @NonNull String[] hints, @Nullable String hintText, @NonNull TextEditState editingState)
 

Static Public Member Functions

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

Public Attributes

final String uniqueIdentifier
 
final String[] hints
 
final TextEditState editState
 
final String hintText
 

Detailed Description

Definition at line 523 of file TextInputChannel.java.

Constructor & Destructor Documentation

◆ Autofill()

io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.Autofill.Autofill ( @NonNull String  uniqueIdentifier,
@NonNull String[]  hints,
@Nullable String  hintText,
@NonNull TextEditState  editingState 
)
inline

Member Function Documentation

◆ fromJson()

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

Definition at line 525 of file TextInputChannel.java.

526 {
527 final String uniqueIdentifier = json.getString("uniqueIdentifier");
528 final JSONArray hints = json.getJSONArray("hints");
529 final String hintText = json.isNull("hintText") ? null : json.getString("hintText");
530 final JSONObject editingState = json.getJSONObject("editingValue");
531 final String[] autofillHints = new String[hints.length()];
532
533 for (int i = 0; i < hints.length(); i++) {
534 autofillHints[i] = translateAutofillHint(hints.getString(i));
535 }
536 return new Autofill(
537 uniqueIdentifier, autofillHints, hintText, TextEditState.fromJson(editingState));
538 }
Autofill( @NonNull String uniqueIdentifier, @NonNull String[] hints, @Nullable String hintText, @NonNull TextEditState editingState)

Member Data Documentation

◆ editState

final TextEditState io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.Autofill.editState

Definition at line 542 of file TextInputChannel.java.

◆ hints

final String [] io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.Autofill.hints

Definition at line 541 of file TextInputChannel.java.

◆ hintText

final String io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.Autofill.hintText

Definition at line 543 of file TextInputChannel.java.

◆ uniqueIdentifier

final String io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.Autofill.uniqueIdentifier

Definition at line 540 of file TextInputChannel.java.


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