XRInputSourceArray
Overview
The interface XRInputSourceArray represents a live list of WebXR input sources, and is used as the return value of the XRSession property inputSources.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
Properties
length
property length: Int32 read;
Int32 length { get; }
var length: Int32 { get{} }
Int32 length { __get; }
ReadOnly Property length() As Int32
Required Methods
entries
Returns an iterator you can use to walk the list of key/value pairs in the list. Each item returned is an array whose first value is the index and whose second value is the XRInputSource at that index.
method entries: dynamic
dynamic entries()
func entries() -> dynamic
dynamic entries()
Function entries() As dynamic
forEach
Iterates over each item in the list, in order from first to last.
method forEach(parcallback: dynamic; parcurrentValue: dynamic; parcurrentIndex: dynamic; parsourceList: dynamic)
void forEach(dynamic parcallback, dynamic parcurrentValue, dynamic parcurrentIndex, dynamic parsourceList)
func forEach(_ parcallback: dynamic, _ parcurrentValue: dynamic, _ parcurrentIndex: dynamic, _ parsourceList: dynamic)
void forEach(dynamic parcallback, dynamic parcurrentValue, dynamic parcurrentIndex, dynamic parsourceList)
Sub forEach(parcallback As dynamic, parcurrentValue As dynamic, parcurrentIndex As dynamic, parsourceList As dynamic)
Parameters:
- parcallback:
- parcurrentValue:
- parcurrentIndex:
- parsourceList:
keys
A list of the keys corresponding to the entries in the input source list.
method keys: dynamic
dynamic keys()
func keys() -> dynamic
dynamic keys()
Function keys() As dynamic
values
Returns an iterator you can use to go through all the values in the list. Each item is a single XRInputSource object.
method values: dynamic
dynamic values()
func values() -> dynamic
dynamic values()
Function values() As dynamic