Exemple #1
0
        public override void ViewDidLoad()
        {
            _settings    = Resolver.Resolve <ISettings>();
            _fingerprint = Resolver.Resolve <IFingerprint>();

            NavItem.Title        = AppResources.VerifyFingerprint;
            CancelButton.Title   = AppResources.Cancel;
            View.BackgroundColor = new UIColor(red: 0.94f, green: 0.94f, blue: 0.96f, alpha: 1.0f);

            UseButton.SetTitle(AppResources.UseFingerprintToUnlock, UIControlState.Normal);
            var descriptor = UIFontDescriptor.PreferredBody;

            UseButton.Font            = UIFont.FromDescriptor(descriptor, descriptor.PointSize);
            UseButton.BackgroundColor = new UIColor(red: 0.24f, green: 0.55f, blue: 0.74f, alpha: 1.0f);
            UseButton.TintColor       = UIColor.White;
            UseButton.TouchUpInside  += UseButton_TouchUpInside;

            base.ViewDidLoad();
        }
        public override void ViewDidLoad()
        {
            _appSettingsService = Resolver.Resolve <IAppSettingsService>();
            _fingerprint        = Resolver.Resolve <IFingerprint>();
            _deviceInfo         = Resolver.Resolve <IDeviceInfoService>();

            NavItem.Title        = _deviceInfo.HasFaceIdSupport ? AppResources.VerifyFaceID : AppResources.VerifyFingerprint;
            CancelButton.Title   = AppResources.Cancel;
            View.BackgroundColor = new UIColor(red: 0.94f, green: 0.94f, blue: 0.96f, alpha: 1.0f);

            UseButton.SetTitle(_deviceInfo.HasFaceIdSupport ? AppResources.UseFaceIDToUnlock :
                               AppResources.UseFingerprintToUnlock, UIControlState.Normal);
            var descriptor = UIFontDescriptor.PreferredBody;

            UseButton.Font            = UIFont.FromDescriptor(descriptor, descriptor.PointSize);
            UseButton.BackgroundColor = new UIColor(red: 0.24f, green: 0.55f, blue: 0.74f, alpha: 1.0f);
            UseButton.TintColor       = UIColor.White;
            UseButton.TouchUpInside  += UseButton_TouchUpInside;

            FingerprintButton.SetImage(new UIImage(_deviceInfo.HasFaceIdSupport ? "smile.png" : "fingerprint.png"),
                                       UIControlState.Normal);

            base.ViewDidLoad();
        }