Definition
WebXR Device API defines XRView
[SecureContext, Exposed=Window] interface XRView {
readonly attribute XREye eye;
readonly attribute Float32Array projectionMatrix;
[SameObject] readonly attribute XRRigidTransform transform;
readonly attribute double? recommendedViewportScale;
undefined requestViewportScale(double? scale);
};
This interface is extended in the following specifications:
- WebXR Raw Camera Access Module
partial interface XRView { [SameObject] readonly attribute XRCamera? camera; };
- WebXR Augmented Reality Module - Level 1
partial interface XRView { readonly attribute boolean isFirstPersonObserver; };
Consolidated IDL (across mixin and partials)
[SecureContext, Exposed=Window] interface XRView {
readonly attribute XREye eye;
readonly attribute Float32Array projectionMatrix;
[SameObject] readonly attribute XRRigidTransform transform;
readonly attribute double? recommendedViewportScale;
undefined requestViewportScale(double? scale);
[SameObject] readonly attribute XRCamera? camera;
readonly attribute boolean isFirstPersonObserver;
};
Methods and attributes that return objects implementing XRView
Referring IDL interfaces/dictionaries
Referring specifications
- WebXR Raw Camera Access Module refers to
XRView
- WebXR Augmented Reality Module - Level 1 refers to
XRView
- WebXR Depth Sensing Module refers to
XRView
- WebXR Layers API Level 1 refers to
XRView