Class AlertDialog
AlertDialog UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class AlertDialog : BaseDialog, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, ISizeableElement, IDismissInvocator
Constructors
Name | Description |
---|---|
AlertDialog() | Default constructor. |
Fields
Name | Description |
---|---|
cancelActionUssClassName | The AlertDialog cancel action styling class. |
iconUssClassName | The AlertDialog icon styling class. |
primaryActionUssClassName | The AlertDialog primary action styling class. |
secondaryActionUssClassName | The AlertDialog secondary action styling class. |
Properties
Name | Description |
---|---|
cancelButton | The AlertDialog cancel action button. |
isPrimaryActionDisabled | Is the primary action button disabled. |
isSecondaryActionDisabled | Is the secondary action button disabled. |
primaryButton | The AlertDialog primary action button. |
secondaryButton | The AlertDialog secondary action button. |
variant | The current variant used by the AlertDialog. |
Methods
Name | Description |
---|---|
SetCancelAction(int, string) | Bind an Action as a the cancel action of the Alert. |
SetPrimaryAction(int, string, Action) | Bind an Action as a the primary action of the Alert. |
SetSecondaryAction(int, string, Action) | Bind an Action as a the secondary action of the Alert. |
Events
Name | Description |
---|---|
dismissRequested | An event invoked when the user requests to dismiss the AlertDialog. |