Class DesktopUiMessageParams
- Namespace
- VpnHood.AppUi.Hosting.Desktop.Abstractions
- Assembly
- VpnHood.AppUi.Hosting.Desktop.Abstractions.dll
Represents what a desktop host hands a UI's RunMessage(DesktopUiMessageParams, CancellationToken): the one message to show, and the UI's own content to show it with.
public class DesktopUiMessageParams
- Inheritance
-
DesktopUiMessageParams
- Inherited Members
Remarks
Nothing here reaches the app, which may not be running, or may have refused whoever asked.
Properties
AppName
Gets the message's title: the app's name, as the head states it.
public required string AppName { get; init; }
Property Value
Kind
Gets what the message is about.
public required DesktopUiMessageKind Kind { get; init; }
Property Value
Text
Gets the host's text of the message: what a UI shows where it has no words of its own for the kind, and, for a failure, why.
public required string Text { get; init; }
Property Value
UiAssetProvider
Gets the UI's own content, as Run(DesktopUiParams, CancellationToken) is given it, so a kind the UI knows is said in the device's language; or null.
public required IAssetProvider? UiAssetProvider { get; init; }