Table of Contents

Class TrinityNotifications

Namespace
AbanoubNassem.Trinity.Utilities
Assembly
AbanoubNassem.Trinity.dll

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

List<object>

A list of all the notifications added before flushing.

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 string

The message used for the notification.

title string

The title used for the notification.

lifeTimeMs int

Delay in milliseconds to close the message automatically.

closable bool

Whether the message can be closed manually using the close icon.

sticky bool

When 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 string

The message used for the notification.

title string

The title used for the notification.

lifeTimeMs int

Delay in milliseconds to close the message automatically.

closable bool

Whether the message can be closed manually using the close icon.

sticky bool

When 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 string

The message used for the notification.

title string

The title used for the notification.

lifeTimeMs int

Delay in milliseconds to close the message automatically.

closable bool

Whether the message can be closed manually using the close icon.

sticky bool

When 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 string

The message used for the notification.

title string

The title used for the notification.

lifeTimeMs int

Delay in milliseconds to close the message automatically.

closable bool

Whether the message can be closed manually using the close icon.

sticky bool

When enabled, message is not removed automatically.