XRSystem class

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The WebXR Device API interface provides methods which let you get access to an XRSession object representing a WebXR session. With that XRSession in hand, you can use it to interact with the Augmented Reality (AR) or Virtual Reality (VR) device.

EventTarget

XRSystem

Implemented types
Available extensions
Annotations
  • @experimental
  • @JS()
  • @staticInterop

Constructors

XRSystem()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
ondevicechange EventHandlerNonNull<Event>?

Available on XRSystem, provided by the PropsXRSystem extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

isSessionSupported(XRSessionMode mode) Future<bool>

Available on XRSystem, provided by the PropsXRSystem extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

requestSession(XRSessionMode mode, [XRSessionInit? options]) Future<XRSession>

Available on XRSystem, provided by the PropsXRSystem extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited