1using CommunityToolkit.Mvvm.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
14 private bool isDisposed;
31 await base.OnInitializeAsync();
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.OnDisposeAsync();
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;
A strongly-typed resource class, for looking up localized strings, etc.
static string TagValueCopiedToClipboard
Looks up a localized string similar to Tag value copied to clipboard.
static string SuccessTitle
Looks up a localized string similar to Success.
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 IReportingStringLocalizer 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.
override Task OnDisposeAsync()
Method called when the view is disposed, and will not be used more. Use this method to unregister eve...
void Dispose()
IDisposable.Dispose
virtual void Dispose(bool disposing)
IDisposable.Dispose
override async Task OnInitializeAsync()
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