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, any, any>;
        entries(): IterableIterator<[number, XRInputSource], any, any>;
        forEach(callbackfn: ((value: XRInputSource, index: number, array: XRInputSource[]) => void), thisArg?: any): void;
        keys(): IterableIterator<number, any, any>;
        values(): IterableIterator<XRInputSource, any, any>;
        [n: number]: XRInputSource;
    }

    Indexable

    Properties

    length: number

    Methods

    • Parameters

      Returns void