Class TrinityNotifications
TrinityNotifications allow you to notify Nova users of events within your application.
public static class TrinityNotifications
- Inheritance
-
TrinityNotifications
- Inherited Members
Methods
Flush()
Flush the notifications and clear it.
public static List<object> Flush()
Returns
NotifyError(string, string?, int, bool, bool)
Show a Toast of an error message.
public static void NotifyError(string message, string? title = null, int lifeTimeMs = 3000, bool closable = true, bool sticky = false)
Parameters
message
stringThe message used for the notification.
title
stringThe title used for the notification.
lifeTimeMs
intDelay in milliseconds to close the message automatically.
closable
boolWhether the message can be closed manually using the close icon.
sticky
boolWhen enabled, message is not removed automatically.
NotifyInformation(string, string?, int, bool, bool)
Show a Toast of an information message.
public static void NotifyInformation(string message, string? title = null, int lifeTimeMs = 3000, bool closable = true, bool sticky = false)
Parameters
message
stringThe message used for the notification.
title
stringThe title used for the notification.
lifeTimeMs
intDelay in milliseconds to close the message automatically.
closable
boolWhether the message can be closed manually using the close icon.
sticky
boolWhen enabled, message is not removed automatically.
NotifySuccess(string, string?, int, bool, bool)
Show a Toast of a successful message.
public static void NotifySuccess(string message, string? title = null, int lifeTimeMs = 3000, bool closable = true, bool sticky = false)
Parameters
message
stringThe message used for the notification.
title
stringThe title used for the notification.
lifeTimeMs
intDelay in milliseconds to close the message automatically.
closable
boolWhether the message can be closed manually using the close icon.
sticky
boolWhen enabled, message is not removed automatically.
NotifyWarning(string, string?, int, bool, bool)
Show a Toast of a warning message.
public static void NotifyWarning(string message, string? title = null, int lifeTimeMs = 3000, bool closable = true, bool sticky = false)
Parameters
message
stringThe message used for the notification.
title
stringThe title used for the notification.
lifeTimeMs
intDelay in milliseconds to close the message automatically.
closable
boolWhether the message can be closed manually using the close icon.
sticky
boolWhen enabled, message is not removed automatically.