Interface XRInputSourceArray

    Represents a list of XRInputSources. It is used in favor of a frozen array type when the contents of the list are expected to change over time, such as with the XRSession inputSources attribute. ref: https://immersive-web.github.io/webxr/#xrinputsourcearray-interface

    interface XRInputSourceArray {
        length: number;
        "[iterator]"(): IterableIterator<XRInputSource>;
        entries(): IterableIterator<[number, XRInputSource]>;
        forEach(
            callbackfn: (
                value: XRInputSource,
                index: number,
                array: XRInputSource[],
            ) => void,
            thisArg?: any,
        ): void;
        keys(): IterableIterator<number>;
        values(): IterableIterator<XRInputSource>;
        [n: number]: XRInputSource;
    }

    Indexable

    Properties

    length: number

    Methods

    • Parameters

      Returns void