1using System.ComponentModel;
2using System.Globalization;
3using System.Threading.Tasks;
4using CommunityToolkit.Mvvm.ComponentModel;
5using CommunityToolkit.Mvvm.Input;
6using Microsoft.Maui.Controls.Shapes;
23 await base.OnInitializeAsync();
24 LocalizationManager.Current.PropertyChanged += this.Localization_Changed;
29 LocalizationManager.Current.PropertyChanged -= this.Localization_Changed;
30 await base.OnDisposeAsync();
33 private void Localization_Changed(
object? sender, PropertyChangedEventArgs e)
35 this.OnPropertyChanged(nameof(this.DetailText));
36 this.OnPropertyChanged(nameof(this.WhatIsX));
39 public double AuthenticationBackgroundSize => 120.0;
41 public RoundRectangle AuthenticationBackgroundStroke =>
new RoundRectangle { CornerRadius = this.AuthenticationBackgroundSize / 2 };
43 public double AuthenticationIconSize => 60.0;
45 public bool IsFingerprint => this.biometricMethod is BiometricMethod.Fingerprint or BiometricMethod.TouchId or
BiometricMethod.Unknown;
47 public bool IsFace => this.biometricMethod is BiometricMethod.Face or BiometricMethod.FaceId or
BiometricMethod.Unknown;
49 public string DetailText
53 string methodName = this.biometricMethod
switch
68 string subject = this.biometricMethod
switch
80 private async Task ShowBiometricsInfo()
82 string message = this.biometricMethod
switch
94 private async Task Later()
97 OnboardingViewModel? Coordinator = this.CoordinatorViewModel;
98 if (Coordinator is not
null)
101 await Coordinator.GoToStepCommand.ExecuteAsync(
OnboardingStep.Finalize);
106 private async Task Enable()
109 OnboardingViewModel? Coordinator = this.CoordinatorViewModel;
110 if (Coordinator is not
null)
113 await Coordinator.GoToStepCommand.ExecuteAsync(
OnboardingStep.Finalize);
A strongly-typed resource class, for looking up localized strings, etc.
static string FaceId
Looks up a localized string similar to Face ID.
static string BiometricAuthentication
Looks up a localized string similar to Biometric authentication.
static string WhatIsX
Looks up a localized string similar to What is {0}?.
static string TouchIdInfo
Looks up a localized string similar to Touch ID uses your fingerprint to ensure it's really you,...
static string BiometricAuthenticationInfo
Looks up a localized string similar to Biometric authentication uses your unique physical features,...
static string FaceIdInfo
Looks up a localized string similar to Face ID recognizes your face to ensure it's really you,...
static string OnboardingBiometricsPageDetails
Looks up a localized string similar to Neuro-Access works best when using {0}. Would you like to enab...
static string TouchId
Looks up a localized string similar to Touch ID.
Base class that references services in the app.
static IPopupService PopupService
Popup service for presenting application popups.
static IReportingStringLocalizer Localizer
Localization service
static IPlatformSpecific PlatformSpecific
Localization service
override async Task OnInitializeAsync()
Method called when view is initialized for the first time. Use this method to implement registration ...
override async Task OnDisposeAsync()
Method called when the view is disposed, and will not be used more. Use this method to unregister eve...
AuthenticationMethod
How the user authenticates itself with the App.
BiometricMethod
Enum representing the device biometric method for authentication.
OnboardingStep
Unified onboarding steps matching the registration journey.