public static FingerprintManagerApiDialogFragment NewInstance(FingerprintManagerCompat fingerprintManager)
 {
     FingerprintManagerApiDialogFragment frag = new FingerprintManagerApiDialogFragment
                                                {
                                                    _fingerprintManager = fingerprintManager
                                                };
     return frag;
 }
        public static FingerprintManagerApiDialogFragment NewInstance(FingerprintManagerCompat fingerprintManager)
        {
            FingerprintManagerApiDialogFragment frag = new FingerprintManagerApiDialogFragment
            {
                _fingerprintManager = fingerprintManager
            };

            return(frag);
        }
コード例 #3
0
 void RecheckEligibility(object sender, EventArgs eventArgs)
 {
     string canScanMsg = CheckFingerprintEligibility();
     if (_canScan)
     {
         _dialogFrag = FingerprintManagerApiDialogFragment.NewInstance(_fingerprintManager);
         _initialPanel.Visibility = ViewStates.Visible;
         _authenticatedPanel.Visibility = ViewStates.Gone;
         _errorPanel.Visibility = ViewStates.Gone;
         _scanInProgressPanel.Visibility = ViewStates.Gone;
     }
     else
     {
         Log.Debug(TAG, "This device is still ineligiblity for fingerprint authentication. ");
         _dialogFrag = null;
         ShowError("Can't use this device for the sample.", canScanMsg);
     }
 }
コード例 #4
0
        void RecheckEligibility(object sender, EventArgs eventArgs)
        {
            string canScanMsg = CheckFingerprintEligibility();

            if (_canScan)
            {
                _dialogFrag = FingerprintManagerApiDialogFragment.NewInstance(_fingerprintManager);
                _initialPanel.Visibility        = ViewStates.Visible;
                _authenticatedPanel.Visibility  = ViewStates.Gone;
                _errorPanel.Visibility          = ViewStates.Gone;
                _scanInProgressPanel.Visibility = ViewStates.Gone;
            }
            else
            {
                Log.Debug(TAG, "This device is still ineligiblity for fingerprint authentication. ");
                _dialogFrag = null;
                ShowError("Can't use this device for the sample.", canScanMsg);
            }
        }
コード例 #5
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_fingerprintmanager_api);

            InitializeViewReferences();

            _fingerprintManager = FingerprintManagerCompat.From(this);
            string canScanMsg = CheckFingerprintEligibility();

            _startAuthenticationScanButton.Click += StartFingerprintScan;
            _scanAgainButton.Click       += ScanAgainButtonOnClick;
            _failedScanAgainButton.Click += RecheckEligibility;

            if (_canScan)
            {
                _dialogFrag = FingerprintManagerApiDialogFragment.NewInstance(_fingerprintManager);
            }
            else
            {
                ShowError("Can't use this device for the sample.", canScanMsg);
            }
        }
コード例 #6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_fingerprintmanager_api);

            InitializeViewReferences();

            _fingerprintManager = FingerprintManagerCompat.From(this);
            string canScanMsg = CheckFingerprintEligibility();

            _startAuthenticationScanButton.Click += StartFingerprintScan;
            _scanAgainButton.Click += ScanAgainButtonOnClick;
            _failedScanAgainButton.Click += RecheckEligibility;

            if (_canScan)
            {
                _dialogFrag = FingerprintManagerApiDialogFragment.NewInstance(_fingerprintManager);
            }
            else
            {
                ShowError("Can't use this device for the sample.", canScanMsg);
            }
        }
 public SimpleAuthCallbacks(FingerprintManagerApiDialogFragment frag)
 {
     _fragment = frag;
 }
コード例 #8
0
 public SimpleAuthCallbacks(FingerprintManagerApiDialogFragment frag)
 {
     _fragment = frag;
 }