Skip to main content

Function: showNotification()

function showNotification(
message: string,
type?: NotificationType,
timeout?: number,
timerRuntime?: NotificationTimerRuntime,
notificationRuntime?: SyncRendererNotificationsRuntime
): void;

Defined in: utils/ui/notifications/syncRendererNotifications.ts:69

Displays a notification message in the UI with state tracking.

Parameters​

message​

string

type?​

NotificationType = "error"

timeout?​

number = 5000

timerRuntime?​

NotificationTimerRuntime = ...

notificationRuntime?​

SyncRendererNotificationsRuntime = ...

Returns​

void