public bool IsFingerprintSupported()
        {
            if (Android.OS.Build.VERSION.SdkInt < Android.OS.BuildVersionCodes.M)
            {
                return(false);
            }

            if (fingerprintManager == null)
            {
                fingerprintManager = FingerprintManagerCompat.From(activity);
            }
            if (fingerprintManager == null || !fingerprintManager.IsHardwareDetected)
            {
                return(false);
            }
            if (!fingerprintManager.HasEnrolledFingerprints)
            {
                return(false);
            }

            if (keyguardManager == null)
            {
                keyguardManager = (KeyguardManager)activity.GetSystemService(Context.KeyguardService);
            }
            if (keyguardManager == null || !keyguardManager.IsKeyguardSecure)
            {
                return(false);
            }

            return(true);
        }
Example #2
0
        public bool CheckInternetConnect()
        {
            if (_connectivityManager == null)
            {
                _connectivityManager = (ConnectivityManager)_activity.GetSystemService(Context.ConnectivityService);
            }

            NetworkInfo info = _connectivityManager.ActiveNetworkInfo;

            return(info != null && info.IsConnected);
        }