Class XRSystem Abstract
Hierarchy
- EventTarget
- XRSystem
Implements
Implemented by
Index
Constructors
Properties
Methods
Constructors
constructor
Returns XRSystem
Properties
ondevicechangeSearch playground for ondevicechange
onsessiongrantedSearch playground for onsessiongranted
Methods
add Event ListenerSearch playground for addEventListener
Type Parameters
K extends keyof XRSystemEventMap
Parameters
type: K
listener: ((this: XRSystem, ev: XRSystemEventMap[K]) => any)
Parameters
this: XRSystem
ev: XRSystemEventMap[K]
Returns any
Optional options: boolean | AddEventListenerOptions
Returns void
Parameters
type: string
listener: EventListenerOrEventListenerObject
Optional options: boolean | AddEventListenerOptions
Returns void
is Session SupportedSearch playground for isSessionSupported
Parameters
mode: XRSessionMode
Returns Promise<boolean>
remove Event ListenerSearch playground for removeEventListener
Type Parameters
K extends keyof XRSystemEventMap
Parameters
type: K
listener: ((this: XRSystem, ev: XRSystemEventMap[K]) => any)
Parameters
this: XRSystem
ev: XRSystemEventMap[K]
Returns any
Optional options: boolean | EventListenerOptions
Returns void
Parameters
type: string
listener: EventListenerOrEventListenerObject
Optional options: boolean | EventListenerOptions
Returns void
request SessionSearch playground for requestSession
Attempts to initialize an XRSession for the given mode if possible, entering immersive mode if necessary.
Parameters
mode: XRSessionMode
Optional options: XRSessionInit
Returns Promise<XRSession>
Queries if a given mode may be supported by the user agent and device capabilities.