Tabnine Logo
AutofillManager.isEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
isEnabled
method
in
android.view.autofill.AutofillManager

Best Java code snippets using android.view.autofill.AutofillManager.isEnabled (Showing top 2 results out of 315)

origin: facebook/facebook-android-sdk

public static boolean isAutofillAvailable(Context context) {
  if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
    // Autofill Framework is only available on Android O and higher
    return false;
  }
  AutofillManager afm = context.getSystemService(AutofillManager.class);
  // Returns whether autofill is supported by device or and enabled for current user.
  return afm != null && afm.isAutofillSupported() && afm.isEnabled();
}
origin: TUM-Dev/Campus-Android

@RequiresApi(api = Build.VERSION_CODES.O)
private void requestAutofillIfEmptyCardholder() {
  if (cardholderEditText.getText().toString().isEmpty()) {
    cardholderEditText.setAutofillHints(View.AUTOFILL_HINT_NAME);
    AutofillManager autofillManager = getSystemService(AutofillManager.class);
    if (autofillManager != null && autofillManager.isEnabled()) {
      autofillManager.requestAutofill(cardholderEditText);
    }
  }
}
android.view.autofillAutofillManagerisEnabled

Popular methods of AutofillManager

  • hasEnabledAutofillServices
  • isAutofillSupported
  • cancel
  • commit
  • disableAutofillServices
  • getNextAutofillId
  • notifyValueChanged
  • notifyViewEntered
  • notifyViewExited
  • registerCallback
  • requestAutofill
  • unregisterCallback
  • requestAutofill,
  • unregisterCallback

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFrame (javax.swing)
  • Top Vim plugins
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