Skip to content

Class: AnnounceOptions ​

Display options for an on-screen announcement shown via k.overlay.announce.

Extends ​

Constructors ​

Constructor ​

ts
new AnnounceOptions(): AnnounceOptions;

Returns ​

AnnounceOptions

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 ​

ScreenDisplayOptions.duration


html? ​

ts
optional html?: boolean;

If true, the message is interpreted as HTML rather than plain text. Sanitized before display.

Inherited from ​

ScreenDisplayOptions.html


target? ​

ts
optional target?: ScreenTarget;

Overlay the screen is played in.

Default Value ​

main

Inherited from ​

ScreenDisplayOptions.target


title? ​

ts
optional title?: string;

Title displayed above the message.

Inherited from ​

ScreenDisplayOptions.title


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.

Inherited from ​

ScreenDisplayOptions.visual