454 {
455 final String inputActionName = json.getString("inputAction");
456 if (inputActionName == null) {
457 throw new JSONException("Configuration JSON missing 'inputAction' property.");
458 }
460 if (!json.isNull("fields")) {
461 final JSONArray jsonFields = json.getJSONArray("fields");
463 for (
int i = 0; i <
fields.length; i++) {
465 }
466 }
467 final Integer
inputAction = inputActionFromTextInputAction(inputActionName);
468
469
472 json.isNull("contentCommitMimeTypes")
473 ? null
474 : json.getJSONArray("contentCommitMimeTypes");
478 }
479 }
480
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()]),
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)
static Configuration fromJson(@NonNull JSONObject json)
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