Interface XRInputSourceArray
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;
}
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
Methods
[iterator]
- "[iterator]"(): IterableIterator<XRInputSource>
Returns IterableIterator<XRInputSource>
entries
- entries(): IterableIterator<[number, XRInputSource]>
Returns IterableIterator<[number, XRInputSource]>
forEach
- forEach(
callbackfn: (
value: XRInputSource,
index: number,
array: XRInputSource[],
) => void,
thisArg?: any,
): void Parameters
- callbackfn: (value: XRInputSource, index: number, array: XRInputSource[]) => void
Optional
thisArg: any
Returns void
keys
- keys(): IterableIterator<number>
Returns IterableIterator<number>
values
- values(): IterableIterator<XRInputSource>
Returns IterableIterator<XRInputSource>
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