THEOplayer Web SDK
    Preparing search index...

    Interface UIRelatedContent

    The related content UI API which can be used to toggle UI components.


    - Available since v2.14.2.

    interface UIRelatedContent {
        showing: boolean;
        sources: RelatedContentSource[];
        addEventListener<TType extends StringKeyOf<UIRelatedContentEventMap>>(
            type: TType | readonly TType[],
            listener: EventListener<UIRelatedContentEventMap[TType]>,
        ): void;
        hide(): void;
        removeEventListener<TType extends StringKeyOf<UIRelatedContentEventMap>>(
            type: TType | readonly TType[],
            listener: EventListener<UIRelatedContentEventMap[TType]>,
        ): void;
        show(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    showing: boolean

    Whether the related content menu is showing.

    List of related content sources.

    Methods

    • Hides the related content menu.

      Returns void

    • Show the related content menu.

      Returns void