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