Skip to content
ConsoleMonster

API Reference

Class

Toast

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

Constructors

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

Creates a toast.

Parameters

text System.String requiredposition: 0
The text.
status ConsoleMonster.Styling.StatusKind = Pass optionalposition: 1
The status that picks the mark and colour (pass, warn, fail, info).
duration System.TimeSpan? = null optionalposition: 2
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.