Class NotificationButtonBuilder
Represents a builder that can be used to create buttons inside notifications.
public class NotificationButtonBuilder
- Inheritance
-
objectNotificationButtonBuilder
Methods
WithAction(Action)
Changes action that is called when the button is clicked.
public NotificationButtonBuilder WithAction(Action action)
Parameters
actionActionThe action to call when the button is clicked.
Returns
- NotificationButtonBuilder
The builder that can be used to further build the button.
WithAction(Func<Task>)
Changes action that is called when the button is clicked.
public NotificationButtonBuilder WithAction(Func<Task> action)
Parameters
Returns
- NotificationButtonBuilder
The builder that can be used to further build the button.
WithCommand(ICommand)
Changes command that is called when the button is clicked.
public NotificationButtonBuilder WithCommand(ICommand command)
Parameters
commandICommandThe command to call when the button is clicked.
Returns
- NotificationButtonBuilder
The builder that can be used to further build the button.
WithCommandParameter(object?)
Changes parameter of the command that is called when the button is clicked.
public NotificationButtonBuilder WithCommandParameter(object? commandParameter)
Parameters
commandParameterobjectThe parameter of the command to call when the button is clicked.
Returns
- NotificationButtonBuilder
The builder that can be used to further build the button.
WithText(string)
Changes text message of the button.
public NotificationButtonBuilder WithText(string text)
Parameters
textstringThe new text.
Returns
- NotificationButtonBuilder
The notification builder that can be used to further build the button.