Skip to content

UiPrerollAd

The UiPrerollAd class is a minimal UI component that serves as a container for pre-roll advertisements. It has no additional logic beyond the base UiComponent.

UiPrerollAd private

Extends UiComponent.

Properties

NameTypeDescription
uiUiCurrent Ui instance. Inherited from UiComponent.
componentElemHTMLElementThe root #hud-preroll-ad DOM element. Inherited from UiComponent.

Methods

constructor()

ts
function constructor(ui: Ui): void

Initializes the pre-roll ad container with an empty #hud-preroll-ad element.