Table of Contents

Class NotificationButtonBuilder

Namespace
Artemis.UI.Shared.Services.Builders
Assembly
Artemis.UI.Shared.dll

Represents a builder that can be used to create buttons inside notifications.

public class NotificationButtonBuilder
Inheritance
object
NotificationButtonBuilder

Methods

WithAction(Action)

Changes action that is called when the button is clicked.

public NotificationButtonBuilder WithAction(Action action)

Parameters

action Action

The 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

action Func<Task>

The action to call when the button is clicked.

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

command ICommand

The 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

commandParameter object

The 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

text string

The new text.

Returns

NotificationButtonBuilder

The notification builder that can be used to further build the button.