Tabnine Logo
AssistStructure$ViewNode.getAutofillValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getAutofillValue
method
in
android.app.assist.AssistStructure$ViewNode

Best Java code snippets using android.app.assist.AssistStructure$ViewNode.getAutofillValue (Showing top 4 results out of 315)

origin: commonsguy/cw-omnibus

json.put("autofillOptions", wrap(node.getAutofillOptions()));
json.put("autofillType", wrap(node.getAutofillType()));
json.put("autofillValue", wrap(node.getAutofillValue()));
json.put("checkable", wrap(node.isCheckable()));
json.put("checked", wrap(node.isChecked()));
origin: googlesamples/android-AutofillFramework

builder.append(prefix).append("afType: ").append(getAutofillTypeAsString(node.getAutofillType()))
    .append("\tafValue:")
    .append(getAutofillValueAndTypeAsString(node.getAutofillValue()))
    .append("\tafOptions:").append(options == null ? "N/A" : Arrays.toString(options))
    .append("\tafHints: ").append(afHints == null ? "N/A" : Arrays.toString(afHints))
origin: googlesamples/android-AutofillFramework

builder.append(prefix).append("afType: ").append(getTypeAsString(node.getAutofillType()))
    .append("\tafValue:")
    .append(getAutofillValueAndTypeAsString(node.getAutofillValue()))
    .append("\tafOptions:").append(options == null ? "N/A" : Arrays.toString(options))
    .append("\tafHints: ").append(afHints == null ? "N/A" : Arrays.toString(afHints))
origin: googlesamples/android-AutofillFramework

private void parseAutofillFields(AssistStructure.ViewNode viewNode,
    DatasetWithFilledAutofillFields datasetWithFilledAutofillFields, int partition) {
  String[] hints = viewNode.getAutofillHints();
  if (hints == null || hints.length == 0) {
    return;
  }
  AutofillValue autofillValue = viewNode.getAutofillValue();
  String textValue = null;
  Long dateValue = null;
  Boolean toggleValue = null;
  CharSequence[] autofillOptions = null;
  Integer listIndex = null;
  if (autofillValue != null) {
    if (autofillValue.isText()) {
      // Using toString of AutofillValue.getTextValue in order to save it to
      // SharedPreferences.
      textValue = autofillValue.getTextValue().toString();
    } else if (autofillValue.isDate()) {
      dateValue = autofillValue.getDateValue();
    } else if (autofillValue.isList()) {
      autofillOptions = viewNode.getAutofillOptions();
      listIndex = autofillValue.getListValue();
    } else if (autofillValue.isToggle()) {
      toggleValue = autofillValue.getToggleValue();
    }
  }
  appendViewMetadata(datasetWithFilledAutofillFields,
      hints, partition, textValue, dateValue, toggleValue,
      autofillOptions, listIndex);
}
android.app.assistAssistStructure$ViewNodegetAutofillValue

Popular methods of AssistStructure$ViewNode

  • getChildAt
  • getChildCount
  • getAutofillHints
  • getAutofillId
  • getAutofillType
  • getClassName
  • getHint
  • getId
  • getIdEntry
  • getInputType
  • getText
  • getVisibility
  • getText,
  • getVisibility,
  • getWebDomain,
  • isChecked,
  • isFocused,
  • getAutofillOptions,
  • getHtmlInfo,
  • isEnabled,
  • getAlpha

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now