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);
        }
 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);
     }
 }
        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);
            }
        }
        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);
            }
        }
        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;
 }