IConfirmationService
Provides methods for triggering a confirmation on the client.
Methods
TriggerConfirmation
Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to trigger the confirmation for. |
| properties | ConfirmationProperties | The properties of the confirmation notifications. |
| callback | Action<bool> | The callback to invoke at response. |
TriggerConfirmation
Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player to trigger the confirmation for. |
| properties | ConfirmationProperties | The properties of the confirmation notifications. |
| callback | Action<bool> | The callback to invoke at response. |
TriggerConfirmation
Displays a tooltip (if not null) and a notification (if not null) to the players of the unit and waits for a keypress, then responds with a boolean.
Parameters
| Name | Type | Description |
|---|---|---|
| unit | Unit | The unit to trigger the confirmation for. |
| properties | ConfirmationProperties | The properties of the confirmation notifications. |
| callback | Action<bool> | The callback to invoke at response. |
TriggerConfirmationAsync
Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to trigger the confirmation for. |
| properties | ConfirmationProperties | The properties of the confirmation notifications. |
Returns
| Name | Type |
|---|---|
| Task<bool> | A |
TriggerConfirmationAsync
Displays a tooltip (if not null) and a notification (if not null) to the player and waits for a keypress, then responds with a boolean.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player to trigger the confirmation for. |
| properties | ConfirmationProperties | The properties of the confirmation notifications. |
Returns
| Name | Type |
|---|---|
| Task<bool> | A |