DesktopServiceStatus class

Namespace Runic.Platform in Runic.Platform 0.23.0

public static class DesktopServiceStatus

Reads the status of application-scoped services.

Methods

Get

public static CapabilityStatus Get(object service)

Gets whether service can be used at all.

Parameters

service

An application-scoped service, such as the result of a Create… factory.

Returns

The service's IDesktopServiceStatus.Status, or Available for a service that does not report one.

Exceptions

ArgumentNullException

service is null.

Example

var secrets = DesktopPlatformServices.CreateSecretStore("org.example.App");
bool offerRememberMe = DesktopServiceStatus.Get(secrets) is CapabilityStatus.Available;