Appearance
Class: NotificationOptions
Display options for an on-screen notification shown via k.overlay.notification.
Extends
Constructors
Constructor
ts
new NotificationOptions(): NotificationOptions;Returns
NotificationOptions
Inherited from
ScreenDisplayOptions.constructor
Properties
duration?
ts
optional duration?: number;On-screen display duration, in seconds.
Remarks
Values outside the allowed range are clamped rather than rejected (1 to 180 seconds for an announcement, 1 to 60 for a notification).
Default Value
ts
the duration configured by the streamer.Inherited from
html?
ts
optional html?: boolean;If true, the message is interpreted as HTML rather than plain text. Sanitized before display.
Inherited from
target?
ts
optional target?: ScreenTarget;Overlay the screen is played in.
Default Value
main
Inherited from
title?
ts
optional title?: string;Title displayed above the message.
Inherited from
title_html?
ts
optional title_html?: boolean;If true, the title is interpreted as HTML. Sanitized before display.
Inherited from
ScreenDisplayOptions.title_html
visual?
ts
optional visual?: ScreenVisual;Image or profile picture attached to the event.