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

Classes

class  Autofill
 

Public Member Functions

 Configuration (boolean obscureText, boolean autocorrect, boolean enableSuggestions, boolean enableIMEPersonalizedLearning, boolean enableDeltaModel, @NonNull TextCapitalization textCapitalization, @NonNull InputType inputType, @Nullable Integer inputAction, @Nullable String actionLabel, @Nullable Autofill autofill, @Nullable String[] contentCommitMimeTypes, @Nullable Configuration[] fields)
 

Static Public Member Functions

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

Public Attributes

final boolean obscureText
 
final boolean autocorrect
 
final boolean enableSuggestions
 
final boolean enableIMEPersonalizedLearning
 
final boolean enableDeltaModel
 
final TextCapitalization textCapitalization
 
final InputType inputType
 
final Integer inputAction
 
final String actionLabel
 
final Autofill autofill
 
final String[] contentCommitMimeTypes
 
final Configuration[] fields
 

Detailed Description

A text editing configuration.

Definition at line 451 of file TextInputChannel.java.

Constructor & Destructor Documentation

◆ Configuration()

io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.Configuration ( boolean  obscureText,
boolean  autocorrect,
boolean  enableSuggestions,
boolean  enableIMEPersonalizedLearning,
boolean  enableDeltaModel,
@NonNull TextCapitalization  textCapitalization,
@NonNull InputType  inputType,
@Nullable Integer  inputAction,
@Nullable String  actionLabel,
@Nullable Autofill  autofill,
@Nullable String[]  contentCommitMimeTypes,
@Nullable Configuration[]  fields 
)
inline

Definition at line 653 of file TextInputChannel.java.

665 {
666 this.obscureText = obscureText;
667 this.autocorrect = autocorrect;
668 this.enableSuggestions = enableSuggestions;
669 this.enableIMEPersonalizedLearning = enableIMEPersonalizedLearning;
670 this.enableDeltaModel = enableDeltaModel;
671 this.textCapitalization = textCapitalization;
672 this.inputType = inputType;
673 this.inputAction = inputAction;
674 this.actionLabel = actionLabel;
675 this.autofill = autofill;
676 this.contentCommitMimeTypes = contentCommitMimeTypes;
677 this.fields = fields;
678 }

Member Function Documentation

◆ fromJson()

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

Definition at line 453 of file TextInputChannel.java.

454 {
455 final String inputActionName = json.getString("inputAction");
456 if (inputActionName == null) {
457 throw new JSONException("Configuration JSON missing 'inputAction' property.");
458 }
459 Configuration[] fields = null;
460 if (!json.isNull("fields")) {
461 final JSONArray jsonFields = json.getJSONArray("fields");
462 fields = new Configuration[jsonFields.length()];
463 for (int i = 0; i < fields.length; i++) {
464 fields[i] = Configuration.fromJson(jsonFields.getJSONObject(i));
465 }
466 }
467 final Integer inputAction = inputActionFromTextInputAction(inputActionName);
468
469 // Build list of content commit mime types from the data in the JSON list.
470 List<String> contentList = new ArrayList<String>();
471 JSONArray contentCommitMimeTypes =
472 json.isNull("contentCommitMimeTypes")
473 ? null
474 : json.getJSONArray("contentCommitMimeTypes");
475 if (contentCommitMimeTypes != null) {
476 for (int i = 0; i < contentCommitMimeTypes.length(); i++) {
477 contentList.add(contentCommitMimeTypes.optString(i));
478 }
479 }
480
481 return new Configuration(
482 json.optBoolean("obscureText"),
483 json.optBoolean("autocorrect", true),
484 json.optBoolean("enableSuggestions"),
485 json.optBoolean("enableIMEPersonalizedLearning"),
486 json.optBoolean("enableDeltaModel"),
487 TextCapitalization.fromValue(json.getString("textCapitalization")),
488 InputType.fromJson(json.getJSONObject("inputType")),
490 json.isNull("actionLabel") ? null : json.getString("actionLabel"),
491 json.isNull("autofill") ? null : Autofill.fromJson(json.getJSONObject("autofill")),
492 contentList.toArray(new String[contentList.size()]),
493 fields);
494 }
void add(sk_sp< SkIDChangeListener > listener) SK_EXCLUDES(fMutex)
Configuration(boolean obscureText, boolean autocorrect, boolean enableSuggestions, boolean enableIMEPersonalizedLearning, boolean enableDeltaModel, @NonNull TextCapitalization textCapitalization, @NonNull InputType inputType, @Nullable Integer inputAction, @Nullable String actionLabel, @Nullable Autofill autofill, @Nullable String[] contentCommitMimeTypes, @Nullable Configuration[] fields)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259

Member Data Documentation

◆ actionLabel

final String io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.actionLabel

Definition at line 648 of file TextInputChannel.java.

◆ autocorrect

final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.autocorrect

Definition at line 641 of file TextInputChannel.java.

◆ autofill

final Autofill io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.autofill

Definition at line 649 of file TextInputChannel.java.

◆ contentCommitMimeTypes

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

Definition at line 650 of file TextInputChannel.java.

◆ enableDeltaModel

final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.enableDeltaModel

Definition at line 644 of file TextInputChannel.java.

◆ enableIMEPersonalizedLearning

final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.enableIMEPersonalizedLearning

Definition at line 643 of file TextInputChannel.java.

◆ enableSuggestions

final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.enableSuggestions

Definition at line 642 of file TextInputChannel.java.

◆ fields

final Configuration [] io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.fields

Definition at line 651 of file TextInputChannel.java.

◆ inputAction

final Integer io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.inputAction

Definition at line 647 of file TextInputChannel.java.

◆ inputType

final InputType io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.inputType

Definition at line 646 of file TextInputChannel.java.

◆ obscureText

final boolean io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.obscureText

Definition at line 640 of file TextInputChannel.java.

◆ textCapitalization

final TextCapitalization io.flutter.embedding.engine.systemchannels.TextInputChannel.Configuration.textCapitalization

Definition at line 645 of file TextInputChannel.java.


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