1using CommunityToolkit.Mvvm.ComponentModel;
19 await base.OnInitialize();
23 ServiceRef.XmppService.Loaded += this.XmppService_Loaded;
29 ServiceRef.XmppService.Loaded -= this.XmppService_Loaded;
32 await base.OnDispose();
41 private string? connectionStateText;
47 private Brush? connectionStateColor;
54 private string? stateSummaryText;
73 if (MainThread.IsMainThread)
76 return Task.CompletedTask;
80 return MainThread.InvokeOnMainThreadAsync(() =>
90 this.ConnectionStateText = state.ToDisplayText();
96 private void XmppService_Loaded(
object? Sender, LoadedEventArgs e)
100 if (e.IsLoaded && !e.IsResuming)
107 Task ExecutionTask = Task.Run(() =>
117 catch (Exception Exception)
Base class that references services in the app.
static ILogService LogService
Log service.
static ITagProfile TagProfile
TAG Profile service.
virtual Task XmppService_ConnectionStateChanged(object _, XmppState NewState)
Listens to connection state changes from the XMPP server.
override async Task OnInitialize()
override async Task OnDispose()
bool DisplayConnectionText
Gets whether the view model is connected to an XMPP server.
void SetConnectionStateAndText(XmppState state)
RegistrationStep Step
This profile's current registration step.
bool IsCompleteOrWaitingForValidation()
Returns true if the registration process for this ITagProfile is either fully complete or is just awa...
LegalIdentity? LegalIdentity
The legal identity of the current user/profile.
RegistrationStep
The different steps of a TAG Profile registration journey.
XmppState
State of XMPP connection.