Skip to content
Version 2.11.0
↓ Get the launcher

INotificationBuilder interface

Fluent builder for a single toast. Accumulates message / kind / duration / icon, then Show enqueues the toast. Mirrors INoticeTipBuilder’s shape for surface consistency. Obtain one via Create.

public interface INotificationBuilder
name description
Show() Enqueue the toast with the accumulated settings. Fire-and-forget; no handle is returned.
WithDuration(…) How long the toast stays on screen (seconds). Defaults to ~3 seconds when unset.
WithIcon(…) Show a custom icon in the toast’s 16px icon slot instead of the baked kind glyph.
WithKind(…) Severity / intent, used to colour the toast and pick the default kind glyph.
WithMessage(…) The text to display. The toast is suppressed at Show if blank.