Table of Contents

Class ToastOptions

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Optional per-toast configuration overriding service defaults.

public sealed record ToastOptions : IEquatable<ToastOptions>
Inheritance
ToastOptions
Implements
Inherited Members
Extension Methods

Constructors

ToastOptions(int?, bool, ToastPosition?)

Optional per-toast configuration overriding service defaults.

public ToastOptions(int? Timeout = null, bool Sticky = false, ToastPosition? Position = null)

Parameters

Timeout int?

Auto-dismiss timeout in milliseconds, or null to use the service default.

Sticky bool

When true, the toast does not auto-dismiss and must be dismissed explicitly.

Position ToastPosition?

The screen position, or null to use the service default.

Properties

Position

The screen position, or null to use the service default.

public ToastPosition? Position { get; init; }

Property Value

ToastPosition?

Sticky

When true, the toast does not auto-dismiss and must be dismissed explicitly.

public bool Sticky { get; init; }

Property Value

bool

Timeout

Auto-dismiss timeout in milliseconds, or null to use the service default.

public int? Timeout { get; init; }

Property Value

int?