WebIDLpedia

XRSystem interface

Definition

WebXR Device API defines XRSystem



[SecureContext, Exposed=Window] interface XRSystem : EventTarget {
  // Methods
  Promise<boolean> isSessionSupported(XRSessionMode mode);
  [NewObject] Promise<XRSession> requestSession(XRSessionMode mode, optional XRSessionInit options = {});

  // Events
  attribute EventHandler ondevicechange;
};

Methods and attributes that return objects implementing XRSystem

Referring IDL interfaces/dictionaries