Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OnboardingLink.cs
4
6{
11 {
16 {
17 }
18
24 public Grade Supports(Uri Link)
25 {
26 return string.Equals(Link.Scheme, Constants.UriSchemes.Onboarding, StringComparison.OrdinalIgnoreCase) ? Grade.Ok : Grade.NotAtAll;
27 }
28
30 public async Task<bool> TryOpenLink(Uri Link, bool ShowErrorIfUnable)
31 {
32 if (ShowErrorIfUnable)
33 {
34 await ServiceRef.UiService.DisplayAlert(
35 ServiceRef.Localizer[nameof(AppResources.ErrorTitle)],
36 ServiceRef.Localizer[nameof(AppResources.ThisCodeCannotBeClaimedAtThisTime)]);
37 }
38
39 return false;
40 }
41 }
42}
const string Onboarding
Onboarding URI Scheme (obinfo)
Definition: Constants.cs:129
A set of never changing property constants and helpful values.
Definition: Constants.cs:7
Base class that references services in the app.
Definition: ServiceRef.cs:31
static IUiService UiService
Service serializing and managing UI-related tasks.
Definition: ServiceRef.cs:55
static IStringLocalizer Localizer
Localization service
Definition: ServiceRef.cs:235
Grade
Grade enumeration
Definition: Grade.cs:7