Class UnityToastHostBinder
Subscribes every toast host under a UI root to the toast signal, inactive hosts included. A host that starts inactive never runs its own enable callback, so without this nothing would ever listen for its toasts.
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Components.Toast
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public static class UnityToastHostBinder
Methods
BindAll(GameObject, IEventDispatcherService)
Binds every UnityToastSignalReactionComponent under uiRoot.
Declaration
public static int BindAll(GameObject uiRoot, IEventDispatcherService dispatcher)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | uiRoot | |
| IEventDispatcherService | dispatcher |
Returns
| Type | Description |
|---|---|
| int | How many toast hosts were bound. |