35 public async Task<bool>
TryOpenLink(Uri Link,
bool ShowErrorIfUnable)
37 string Url = Link.OriginalString;
47 if (ShowErrorIfUnable)
50 ServiceRef.
Localizer[nameof(AppResources.InvalidIoTDiscoveryCode)] + Environment.NewLine + Environment.NewLine + Url);
56 ServiceRef.TagProfile.HasThing =
true;
const string IotDisco
The IoT Discovery URI Scheme (iotdisco)
A set of never changing property constants and helpful values.
Opens Things Discovery links.
async Task< bool > TryOpenLink(Uri Link, bool ShowErrorIfUnable)
Tries to open a link
ThingsDiscoveryLink()
Opens Things Discovery links.
Grade Supports(Uri Link)
How well the link opener supports a given link
Base class that references services in the app.
static IUiService UiService
Service serializing and managing UI-related tasks.
static IStringLocalizer Localizer
Localization service
static IThingRegistryOrchestratorService ThingRegistryOrchestratorService
Thing Registry orchestrator service.
static IXmppService XmppService
The XMPP service for XMPP communication.
Interface for classes that can open links.