private bool TrySetupSamsung() { try { //try to create a Samsung ID object _samsungBiometry = new BiometrySamsungIdentifier(this); if (!_samsungBiometry.Init()) { SetError(Resource.String.fingerprint_no_enrolled); } ShowRadioButtons(); FindViewById(Resource.Id.container_fingerprint_unlock).Visibility = _samsungBiometry == null ? ViewStates.Visible : ViewStates.Gone; return(true); } catch (Exception) { _samsungBiometry = null; return(false); } }
public IdentifyListener(IBiometricAuthCallback callback, Context context, BiometrySamsungIdentifier id) { _callback = callback; _context = context; _id = id; }