7***@qq.com
7***@qq.com
  • 发布:2017-08-18 22:49
  • 更新:2017-08-18 22:49
  • 阅读:1064

nativejs

分类:Native.js

请问哈 android 原生是这个样子
manager.authenticate(cryptoObject, mCancellationSignal, 0,
mSelfCancelled, null);

FingerprintManager.AuthenticationCallback mSelfCancelled = new FingerprintManager.AuthenticationCallback() {  
    @Override  
    public void onAuthenticationError(int errorCode, CharSequence errString) {  
        // 但多次指纹密码验证错误后,进入此方法;并且,不能短时间内调用指纹验证  
        Toast.makeText(MainActivity.this, errString, Toast.LENGTH_SHORT)  
                .show();  
        showAuthenticationScreen();  
    }  

    @Override  
    public void onAuthenticationHelp(int helpCode, CharSequence helpString) {  

        Toast.makeText(MainActivity.this, helpString, Toast.LENGTH_SHORT)  
                .show();  
    }  

    @Override  
    public void onAuthenticationSucceeded(  
            FingerprintManager.AuthenticationResult result) {  

        Toast.makeText(MainActivity.this, "指纹识别成功", Toast.LENGTH_SHORT)  
                .show();  
    }  

    @Override  
    public void onAuthenticationFailed() {  
        Toast.makeText(MainActivity.this, "指纹识别失败", Toast.LENGTH_SHORT)  
                .show();  
    }  
};  

怎么翻译成nativejs啊

2017-08-18 22:49 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复