1using System.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
18 protected override void OnPropertyChanged(PropertyChangedEventArgs e)
20 base.OnPropertyChanged(e);
22 switch (e.PropertyName)
24 case nameof(this.IsConnected):
25 this.ScanQrCodeCommand.NotifyCanExecuteChanged();
30 public bool CanScanQrCode => this.IsConnected;
32 [RelayCommand(CanExecute = nameof(CanScanQrCode))]
33 private async Task ScanQrCode()
35 await Services.UI.QR.QrCode.ScanQrCodeAndHandleResult();
39 public static async Task ViewId()
The Application class, representing an instance of the Neuro-Access app.
static Task< bool > AuthenticateUser(AuthenticationPurpose Purpose, bool Force=false)
Authenticates the user using the configured authentication method.
Base class that references services in the app.
static ILogService LogService
Log service.
static IUiService UiService
Service serializing and managing UI-related tasks.
static ITagProfile TagProfile
TAG Profile service.
A page to display when the user wants to view an identity.
override Task< string > Title
Title of the current view
A view model that holds the XMPP state.
AuthenticationPurpose
Purpose for requesting the user to authenticate itself.