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

Properties


length

property length: Int32 read;
var length: Int32 { 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.

func entries() -> dynamic
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.

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.

Function values() As dynamic