Skip to content
ConsoleMonster
Class

Toast

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

A short notice ("Preset saved") shown for a few seconds in place of the key hints.

Inheritance

  • object
  • Toast

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public Toast(string text, StatusKind status = Pass, TimeSpan? duration = null) #

Creates a toast.

Parameters

text string required
The text.
status ConsoleMonster.Styling.StatusKind = Pass optional
The status that picks the mark and colour (pass, warn, fail, info).
duration System.TimeSpan? = null optional
How long it stays; null is 2.5 seconds.

Properties

public string Text { get; } #

The text.

public StatusKind Status { get; } #

The status.

public TimeSpan Duration { get; } #

How long it stays.