Class Toast
A toast is a view containing a quick little message for the user.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public sealed class Toast : BottomNotification<Toast>
Properties
Name | Description |
---|---|
icon | The icon used inside the Toast as leading UI element. |
style | Returns the styling used by the bar. See NotificationStyle for more information. |
text | Returns the raw message or Localization dictionary key used by the bar. |
triggeredActionId | The Action ID of the triggered Action (if any) just before dismissing the element. |
Methods
Name | Description |
---|---|
Build(VisualElement, string, NotificationDuration) | Build and return a Toast UI element. The method will find the best suitable parent view which will contain the Toast element. |
RemoveAction(int) | Remove an already existing action. |
SetAction(int, string, Action) | Set an Action to display in the Toast bar. |
SetIcon(string) | Set a new value for the icon property. |
SetStyle(NotificationStyle) | |
SetText(string) | Update the text in the Toast. |