IDesktopServiceStatus interface

Namespace Runic.Platform in Runic.Platform 0.23.0

public interface IDesktopServiceStatus

An application-scoped service (IDesktopSettings, IDesktopNotifications, IDesktopSecretStore and the other IDesktop… services) that reports whether it can be used at all.

Remarks

Read it through DesktopServiceStatus.Get, which also answers for services that do not implement this interface. Window-scoped services report their capabilities through IPlatformCapabilities instead.

Properties

Status

CapabilityStatus Status { get; }

Unavailable when every operation reports Unavailable with that reason, for example a service an Unavailable(…) factory created because no provider supports this platform or host; otherwise Available.

Remarks

Available means the service was created for a native backend, not that each request succeeds: a request still reports the backend's outcome, including Unavailable when a desktop service turns out to be missing. Use it to decide whether to offer a feature, and the request's result to report what happened.