1using CommunityToolkit.Mvvm.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
14 private bool isDisposed;
31 await base.OnInitialize();
33 if (this.Uri is not
null)
35 this.QrCodeWidth = 400;
36 this.QrCodeHeight = 400;
40 this.timer =
new Timer(this.Timeout,
null, 60000, 60000);
43 private void Timeout(
object? _)
45 this.timer?.Dispose();
48 MainThread.BeginInvokeOnMainThread(async () =>
57 this.timer?.Dispose();
60 return base.OnDispose();
74 private async Task CopyUriToClipboard()
76 await Clipboard.SetTextAsync(this.Uri);
98 GC.SuppressFinalize(
this);
104 protected virtual void Dispose(
bool disposing)
111 this.timer?.Dispose();
115 this.isDisposed =
true;
Base class that references services in the app.
static IUiService UiService
Service serializing and managing UI-related tasks.
static ITagProfile TagProfile
TAG Profile service.
static IStringLocalizer Localizer
Localization service
virtual async Task GoBack()
Method called when user wants to navigate to the previous screen.
The view model to bind to for when displaying identities.
void Dispose()
IDisposable.Dispose
override Task OnDispose()
Method called when the view is disposed, and will not be used more. Use this method to unregister eve...
virtual void Dispose(bool disposing)
IDisposable.Dispose
override async Task OnInitialize()
Method called when view is initialized for the first time. Use this method to implement registration ...
override Task< string > Title
Title of the current view
TransferIdentityViewModel(TransferIdentityNavigationArgs? Args)
Creates an instance of the TransferIdentityViewModel class.
A view model that holds the XMPP state.
void GenerateQrCode(string Uri)
Generates a QR-code