Class ShowToastSignal
Signal that requests a transient toast notification carrying Message.
Dispatched through the event system (e.g. a cascade menu option's OnSelectSignal, a
SignalEmitterComponent, or any code path) and turned into a visible toast by a
UnityToastSignalReactionComponent listening for it.
Namespace: Serenity.Ui.Infrastructure.Components.Toast
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public class ShowToastSignal : EventDispatcherSignal
Remarks
Where Show(string) needs the message wired into a parameterless
UnityEvent at edit time, this signal carries the message as data — so a single listener can
render any message, and authors can vary the text per call site (e.g. a different message per menu
option) without one component/event per message.
Constructors
ShowToastSignal()
Initializes an empty signal (used by the inspector / serialization).
Declaration
public ShowToastSignal()
ShowToastSignal(string)
Initializes a signal carrying message.
Declaration
public ShowToastSignal(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The text the toast should display. |
ShowToastSignal(string, bool)
Initializes a signal carrying message with an explicit translation flag.
Declaration
public ShowToastSignal(string message, bool isTranslating)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The text the toast should display. |
| bool | isTranslating | Whether |
Fields
IsTranslating
Declaration
public bool IsTranslating
Field Value
| Type | Description |
|---|---|
| bool | When true, Message is treated as a localization key by the toast renderer instead of raw display text. Defaults to false so existing senders are unaffected. |
Message
Declaration
public string Message
Field Value
| Type | Description |
|---|---|
| string | The text the toast should display. Falls back to the toast's default message when empty. |
Methods
ToString()
Returns a string representation of the signal.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |