Class: RaceNotifications
Race Notifictions is a Collection of Utilities to Help with Standardising Notifications
Methods
actionNotification
▸ Static actionNotification(message, type, actions): null | Notification
Display an Action Notification that can be interacted with.
Parameters
| Name | Type |
|---|---|
message | string |
type | NotificationType |
actions | RaceNotificationAction[] |
Returns
null | Notification
Example
RaceNotifications.actionNotification("Settings Successfully Saved", NotificationType.success);
register
▸ Static register(): void
Register should be called at the Top of your Plugins init function
Returns
void
Example
RaceNotifications.register();
simpleNotification
▸ Static simpleNotification(message, type): null | Notification
Diplay a Simple Notification
Parameters
| Name | Type |
|---|---|
message | string |
type | NotificationType |
Returns
null | Notification
Example
RaceNotifications.simpleNotification("Settings Successfully Saved", NotificationType.success);