當前位置: 首頁>>代碼示例>>Java>>正文


Java FingerprintManager.FINGERPRINT_ACQUIRED_GOOD屬性代碼示例

本文整理匯總了Java中android.hardware.fingerprint.FingerprintManager.FINGERPRINT_ACQUIRED_GOOD屬性的典型用法代碼示例。如果您正苦於以下問題:Java FingerprintManager.FINGERPRINT_ACQUIRED_GOOD屬性的具體用法?Java FingerprintManager.FINGERPRINT_ACQUIRED_GOOD怎麽用?Java FingerprintManager.FINGERPRINT_ACQUIRED_GOOD使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在android.hardware.fingerprint.FingerprintManager的用法示例。


在下文中一共展示了FingerprintManager.FINGERPRINT_ACQUIRED_GOOD屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: handleHelpCode

private void handleHelpCode(int code) {
    switch (code) {
        case FingerprintManager.FINGERPRINT_ACQUIRED_GOOD:
            setResultInfo(R.string.AcquiredGood_warning);
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_IMAGER_DIRTY:
            setResultInfo(R.string.AcquiredImageDirty_warning);
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_INSUFFICIENT:
            setResultInfo(R.string.AcquiredInsufficient_warning);
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_PARTIAL:
            setResultInfo(R.string.AcquiredPartial_warning);
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_TOO_FAST:
            setResultInfo(R.string.AcquiredTooFast_warning);
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_TOO_SLOW:
            setResultInfo(R.string.AcquiredToSlow_warning);
            break;
    }
}
 
開發者ID:CreateChance,項目名稱:AndroidFingerPrintDemo,代碼行數:22,代碼來源:MainActivity.java

示例2: handleHelpCode

private void handleHelpCode(int code) {
    switch (code) {
        case FingerprintManager.FINGERPRINT_ACQUIRED_GOOD:
            Log.i("success","good");
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_IMAGER_DIRTY:
            Log.i("success","dirty");
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_INSUFFICIENT:
            Log.i("success","insufficient");
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_PARTIAL:
            Log.i("success","partial");
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_TOO_FAST:
            Log.i("success","fast");
            break;
        case FingerprintManager.FINGERPRINT_ACQUIRED_TOO_SLOW:
            Log.i("success","slow");
            break;
    }
}
 
開發者ID:RinCode,項目名稱:PasswordRecorder,代碼行數:22,代碼來源:FingerPrintAuth.java


注:本文中的android.hardware.fingerprint.FingerprintManager.FINGERPRINT_ACQUIRED_GOOD屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。