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