Tabnine Logo
FingerprintManagerCompat.authenticate
Code IndexAdd Tabnine to your IDE (free)

How to use
authenticate
method
in
android.support.v4.hardware.fingerprint.FingerprintManagerCompat

Best Java code snippets using android.support.v4.hardware.fingerprint.FingerprintManagerCompat.authenticate (Showing top 4 results out of 315)

origin: lygttpod/AndroidCustomView

managerCompat.authenticate(null, 0, cancellationSignal, new FingerprintManagerCompat.AuthenticationCallback() {
origin: thealeksandr/PFLockScreen-Android

public void startListening(FingerprintManagerCompat.CryptoObject cryptoObject) {
  if (!isFingerprintAuthAvailable()) {
    return;
  }
  mCancellationSignal = new CancellationSignal();
  mSelfCancelled = false;
  // The line below prevents the false positive inspection from Android Studio
  // noinspection ResourceType
  mFingerprintManager.authenticate(
      cryptoObject, 0, mCancellationSignal, this, null);
  mIcon.setImageResource(R.drawable.ic_fp_40px_pf);
}
origin: advanced-android-book/samples

public void startListening(FingerprintManagerCompat.CryptoObject cryptoObject) {
  if (!isFingerprintAuthAvailable()) {
    return;
  }
  mCancellationSignal = new CancellationSignal();
  mSelfCancelled = false;
  mFingerprintManager
      .authenticate(cryptoObject, 0 /* flags */, mCancellationSignal, this, null);
  mIcon.setImageResource(R.drawable.ic_fp_40px);
}
origin: CreateChance/AndroidFingerPrintDemo

  @Override
  public void onClick(View v) {
    // reset result info.
    mResultInfo.setText(R.string.fingerprint_hint);
    mResultInfo.setTextColor(getColor(R.color.hint_color));
    // start fingerprint auth here.
    try {
      CryptoObjectHelper cryptoObjectHelper = new CryptoObjectHelper();
      if (cancellationSignal == null) {
        cancellationSignal = new CancellationSignal();
      }
      fingerprintManager.authenticate(cryptoObjectHelper.buildCryptoObject(), 0,
          cancellationSignal, myAuthCallback, null);
      // set button state.
      mStartBtn.setEnabled(false);
      mCancelBtn.setEnabled(true);
    } catch (Exception e) {
      e.printStackTrace();
      Toast.makeText(MainActivity.this, "Fingerprint init failed! Try again!", Toast.LENGTH_SHORT).show();
    }
  }
});
android.support.v4.hardware.fingerprintFingerprintManagerCompatauthenticate

Popular methods of FingerprintManagerCompat

  • from
  • hasEnrolledFingerprints
  • isHardwareDetected

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ 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