THEOplayer Web SDK
    Preparing search index...

    Interface EventedList<T, M>

    List of generic items which can dispatch events.

    interface EventedList<T, M extends EventMap<StringKeyOf<M>>> {
        length: number;
        addEventListener<TType extends string>(
            type: TType | readonly TType[],
            listener: EventListener<M[TType]>,
        ): void;
        item(index: number): undefined | T;
        removeEventListener<TType extends string>(
            type: TType | readonly TType[],
            listener: EventListener<M[TType]>,
        ): void;
        [index: number]: T;
    }

    Type Parameters

    Hierarchy (View Summary)

    Indexable

    • [index: number]: T

      The object representing the nth in the list.

    Index

    Properties

    length: number

    The number of items in the list.

    Methods

    • Returns the object representing the nth item in the list.

      Parameters

      • index: number

        The index of the item to retrieve.

      Returns undefined | T