Skip to main content

showNotification

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/ui/notifications/showNotification / showNotification

Function: showNotification()

showNotification(message: string, type?: string, duration?: number | null, options?: NotificationOptions): Promise<void>

Defined in: utils/ui/notifications/showNotification.ts:130

Shows a queued renderer notification with animations, optional action buttons, and per-type default durations.

Parameters​

message​

string

Message to display.

type?​

string = "info"

Notification variant. Unknown strings fall back to info.

duration?​

number | null

Duration in milliseconds, or null for the type default.

options?​

NotificationOptions = {}

Additional display and interaction options.

Returns​

Promise<void>

Promise that resolves when this notification becomes visible.