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
Timeoutint?Auto-dismiss timeout in milliseconds, or
nullto use the service default.StickyboolWhen
true, the toast does not auto-dismiss and must be dismissed explicitly.PositionToastPosition?The screen position, or
nullto use the service default.
Properties
Position
The screen position, or null to use the service default.
public ToastPosition? Position { get; init; }
Property Value
Sticky
When true, the toast does not auto-dismiss and must be dismissed explicitly.
public bool Sticky { get; init; }
Property Value
Timeout
Auto-dismiss timeout in milliseconds, or null to use the service default.
public int? Timeout { get; init; }
Property Value
- int?