RunicGuestSession class

Namespace Runic.Application.Views.Desktop in Runic.Application.Views.Desktop 0.23.0

public sealed class RunicGuestSession

A running hosted mode: the host channel of RunicDesktopHost.Guest.

Properties

Appearance

public DesktopAppearance? Appearance { get; }

The host's appearance, which the application's Windows show (their pages' appearance and their prefers-color-scheme), instead of this process's own desktop settings; null while the host reports none.

Features

public IReadOnlyList<string> Features { get; }

The protocol's features in use on the channel, such as dialogs/1; empty for the base protocol.

Host

public RunicHostInfo Host { get; }

The host that shows this application's windows.

HostGone

public CancellationToken HostGone { get; }

Cancelled when the host went away or asked the application to shut down.

Languages

public IReadOnlyList<string> Languages { get; }

The languages the host's user prefers, most preferred first, at most 32: for an application that chooses its own locale, such as catalog.ResolveLocale(session.Languages), where it would read DesktopLanguages.Preferred.

Locale

public string? Locale { get; }

The host's application locale, a BCP 47 tag such as de-CH, or null while the host sets none. The application's IRunicApplicationLocale follows it unless the application sets a locale of its own.

Remarks

It changes when the host's locale does, before the application's locale follows.

Protocol

public int Protocol { get; }

The version of the Runic host protocol in use: 1.