コード例 #1
0
ファイル: LockPage.xaml.cs プロジェクト: xamarinhub/mobile
 public LockPage(AppOptions appOptions = null, bool autoPromptFingerprint = true)
 {
     _appOptions            = appOptions;
     _autoPromptFingerprint = autoPromptFingerprint;
     InitializeComponent();
     _vm                = BindingContext as LockPageViewModel;
     _vm.Page           = this;
     _vm.UnlockedAction = () =>
     {
         if (_appOptions != null)
         {
             if (_appOptions.FromAutofillFramework && _appOptions.SaveType.HasValue)
             {
                 Application.Current.MainPage = new NavigationPage(new AddEditPage(appOptions: _appOptions));
                 return;
             }
             else if (_appOptions.Uri != null)
             {
                 Application.Current.MainPage = new NavigationPage(new AutofillCiphersPage(_appOptions));
                 return;
             }
         }
         Application.Current.MainPage = new TabsPage(_appOptions);
     };
     MasterPasswordEntry = _masterPassword;
     PinEntry            = _pin;
 }
コード例 #2
0
ファイル: LockPage.xaml.cs プロジェクト: waldow90/mobile-1
 public LockPage(AppOptions appOptions = null, bool autoPromptFingerprint = true)
 {
     _storageService        = ServiceContainer.Resolve <IStorageService>("storageService");
     _appOptions            = appOptions;
     _autoPromptFingerprint = autoPromptFingerprint;
     InitializeComponent();
     _vm                 = BindingContext as LockPageViewModel;
     _vm.Page            = this;
     _vm.UnlockedAction  = () => Device.BeginInvokeOnMainThread(async() => await UnlockedAsync());
     MasterPasswordEntry = _masterPassword;
     PinEntry            = _pin;
 }
コード例 #3
0
ファイル: LockPage.xaml.cs プロジェクト: turlodales/mobile
        public LockPage(AppOptions appOptions = null, bool autoPromptBiometric = true)
        {
            _appOptions          = appOptions;
            _autoPromptBiometric = autoPromptBiometric;
            InitializeComponent();
            _vm                = BindingContext as LockPageViewModel;
            _vm.Page           = this;
            _vm.UnlockedAction = () => Device.BeginInvokeOnMainThread(async() => await UnlockedAsync());

            if (Device.RuntimePlatform == Device.iOS)
            {
                ToolbarItems.Add(_moreItem);
            }
            else
            {
                ToolbarItems.Add(_logOut);
            }
        }
コード例 #4
0
        public LockPage(AppOptions appOptions = null, bool autoPromptBiometric = true)
        {
            _storageService      = ServiceContainer.Resolve <IStorageService>("storageService");
            _appOptions          = appOptions;
            _autoPromptBiometric = autoPromptBiometric;
            InitializeComponent();
            _vm                 = BindingContext as LockPageViewModel;
            _vm.Page            = this;
            _vm.UnlockedAction  = () => Device.BeginInvokeOnMainThread(async() => await UnlockedAsync());
            MasterPasswordEntry = _masterPassword;
            PinEntry            = _pin;

            if (Device.RuntimePlatform == Device.iOS)
            {
                ToolbarItems.Add(_moreItem);
            }
            else
            {
                ToolbarItems.Add(_logOut);
            }
        }