Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NeuroAccessMaui.App Class Reference

Represents an instance of the Neuro-Access app. More...

Inheritance diagram for NeuroAccessMaui.App:
Waher.Events.IDisposableAsync

Public Member Functions

 App (bool backgroundStart)
 
async Task OnBackgroundStart ()
 
async Task ResumeAsync (bool isBackground)
 
async Task OnBackgroundSleep ()
 
async Task ForceSaveAsync ()
 
void Dispose ()
 Disposes the connection More...
 
virtual async Task DisposeAsync ()
 IDisposableAsync.Dispose More...
 

Static Public Member Functions

static async Task EvaluateDatabaseDiffAsync (string fileName, bool includeUnchanged, bool sendAsAlert)
 
static void OpenUrlSync (string url)
 
static Task< bool > OpenUrlAsync (string url)
 
static Task< bool > OpenUrlAsync (string url, bool showErrorIfUnable)
 
static T Instantiate< T > ()
 
static void RaiseAppActivated ()
 
static void ValidateCertificateCallback (object? Sender, RemoteCertificateEventArgs Args)
 Callback for validating SSL certificates. This method is called when a remote certificate is received during HTTPS communication. Fixed an issue with incomplete revocation check in the chain on iOS devices. More...
 

Static Public Attributes

static readonly LanguageInfo[] SupportedLanguages
 Supported languages. More...
 

Protected Member Functions

override Window CreateWindow (IActivationState? activationState)
 Override default window creation to use CustomShell as root page. More...
 
override async void OnStart ()
 
override async void OnResume ()
 
override async void OnSleep ()
 
virtual void Dispose (bool disposing)
 IDisposableAsync.Dispose More...
 

Properties

static new? App Current [get]
 Gets the current application instance. More...
 
static Task ServicesReady [get]
 Task that completes once all core services have finished loading. More...
 
static LanguageInfo SelectedLanguage [get]
 Gets the selected language. More...
 
static bool IsOnboarded [get]
 Indicates whether the application is onboarded. More...
 
Task< bool > InitCompleted [get]
 

Events

static ? EventHandler AppActivated
 Define a static event to notify when the app enters the foreground. More...
 

Detailed Description

Represents an instance of the Neuro-Access app.

Definition at line 124 of file App.xaml.cs.

Constructor & Destructor Documentation

◆ App() [1/2]

NeuroAccessMaui.App.App ( )

Definition at line 266 of file App.xaml.cs.

◆ App() [2/2]

NeuroAccessMaui.App.App ( bool  backgroundStart)

Definition at line 268 of file App.xaml.cs.

Member Function Documentation

◆ CreateWindow()

override Window NeuroAccessMaui.App.CreateWindow ( IActivationState?  activationState)
protected

Override default window creation to use CustomShell as root page.

Definition at line 321 of file App.xaml.cs.

◆ Dispose() [1/2]

void NeuroAccessMaui.App.Dispose ( )

Disposes the connection

Implements Waher.Events.IDisposableAsync.

Definition at line 1082 of file App.xaml.cs.

◆ Dispose() [2/2]

virtual void NeuroAccessMaui.App.Dispose ( bool  disposing)
protectedvirtual

IDisposableAsync.Dispose

Definition at line 1091 of file App.xaml.cs.

◆ DisposeAsync()

virtual async Task NeuroAccessMaui.App.DisposeAsync ( )
virtual

◆ EvaluateDatabaseDiffAsync()

static async Task NeuroAccessMaui.App.EvaluateDatabaseDiffAsync ( string  fileName,
bool  includeUnchanged,
bool  sendAsAlert 
)
static

Definition at line 1002 of file App.xaml.cs.

◆ Instantiate< T >()

static T NeuroAccessMaui.App.Instantiate< T > ( )
static

Definition at line 1117 of file App.xaml.cs.

◆ OnBackgroundStart()

async Task NeuroAccessMaui.App.OnBackgroundStart ( )

Definition at line 449 of file App.xaml.cs.

◆ OnResume()

override async void NeuroAccessMaui.App.OnResume ( )
protected

Definition at line 484 of file App.xaml.cs.

◆ OnSleep()

override async void NeuroAccessMaui.App.OnSleep ( )
protected

Definition at line 701 of file App.xaml.cs.

◆ OnStart()

override async void NeuroAccessMaui.App.OnStart ( )
protected

Definition at line 464 of file App.xaml.cs.

◆ OpenUrlAsync()

static Task< bool > NeuroAccessMaui.App.OpenUrlAsync ( string  url,
bool  showErrorIfUnable 
)
static

Definition at line 1071 of file App.xaml.cs.

◆ OpenUrlSync()

static void NeuroAccessMaui.App.OpenUrlSync ( string  url)
static

Definition at line 1053 of file App.xaml.cs.

◆ RaiseAppActivated()

static void NeuroAccessMaui.App.RaiseAppActivated ( )
static

Definition at line 1125 of file App.xaml.cs.

◆ ResumeAsync()

async Task NeuroAccessMaui.App.ResumeAsync ( bool  isBackground)

Definition at line 477 of file App.xaml.cs.

◆ ValidateCertificateCallback()

static void NeuroAccessMaui.App.ValidateCertificateCallback ( object?  Sender,
RemoteCertificateEventArgs  Args 
)
static

Callback for validating SSL certificates. This method is called when a remote certificate is received during HTTPS communication. Fixed an issue with incomplete revocation check in the chain on iOS devices.

Definition at line 1135 of file App.xaml.cs.

Member Data Documentation

◆ SupportedLanguages

readonly LanguageInfo [] NeuroAccessMaui.App.SupportedLanguages
static
Initial value:
=
[
new("en", "English"),
new("sv", "svenska"),
new("es", "español"),
new("fr", "français"),
new("de", "Deutsch"),
new("da", "dansk"),
new("no", "norsk"),
new("fi", "suomi"),
new("sr", "српски"),
new("pt", "português"),
new("ro", "română"),
new("ru", "русский")
]

Supported languages.

Definition at line 179 of file App.xaml.cs.

Property Documentation

◆ Current

new? App NeuroAccessMaui.App.Current
staticget

Gets the current application instance.

Definition at line 169 of file App.xaml.cs.

◆ InitCompleted

Task<bool> NeuroAccessMaui.App.InitCompleted
get

Definition at line 259 of file App.xaml.cs.

◆ IsOnboarded

bool NeuroAccessMaui.App.IsOnboarded
staticget

Indicates whether the application is onboarded.

Definition at line 252 of file App.xaml.cs.

◆ SelectedLanguage

LanguageInfo NeuroAccessMaui.App.SelectedLanguage
staticget

Gets the selected language.

Definition at line 198 of file App.xaml.cs.

◆ ServicesReady

Task NeuroAccessMaui.App.ServicesReady
staticget

Task that completes once all core services have finished loading.

Definition at line 174 of file App.xaml.cs.

Event Documentation

◆ AppActivated

? EventHandler NeuroAccessMaui.App.AppActivated
static

Define a static event to notify when the app enters the foreground.

Definition at line 257 of file App.xaml.cs.


The documentation for this class was generated from the following file: