XRFrame class
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
A WebXR Device API object is passed into the
requestAnimationFrame()
callback function and provides access
to the information needed in order to render a single frame of
animation for an XRSession describing a VR or AR scene. Events
which communicate the tracking state of objects also provide an
reference as part of their structure.
In addition to providing a reference to the XRSession for
which this frame is to be rendered, the getViewerPose()
method
is provided to obtain the XRViewerPose describing the viewer's
position and orientation in space, and getPose()
can be used to
create an XRPose describing the relative position of one
XRSpace relative to another.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- XRFrame()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- predictedDisplayTime → double
-
Available on XRFrame, provided by the PropsXRFrame extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → XRSession
-
Available on XRFrame, provided by the PropsXRFrame extension
no setter - trackedAnchors → XRAnchorSet
-
Available on XRFrame, provided by the PropsXRFrame extension
no setter
Methods
-
createAnchor(
XRRigidTransform pose, XRSpace space) → Future< XRAnchor> -
Available on XRFrame, provided by the PropsXRFrame extension
-
fillJointRadii(
Iterable< XRJointSpace> jointSpaces, Float32List radii) → bool -
Available on XRFrame, provided by the PropsXRFrame extension
-
fillPoses(
Iterable< XRSpace> spaces, XRSpace baseSpace, Float32List transforms) → bool -
Available on XRFrame, provided by the PropsXRFrame extension
-
getDepthInformation(
XRView view) → XRCPUDepthInformation? -
Available on XRFrame, provided by the PropsXRFrame extension
-
getHitTestResults(
XRHitTestSource hitTestSource) → Iterable< XRHitTestResult> -
Available on XRFrame, provided by the PropsXRFrame extension
-
getHitTestResultsForTransientInput(
XRTransientInputHitTestSource hitTestSource) → Iterable< XRTransientInputHitTestResult> -
Available on XRFrame, provided by the PropsXRFrame extension
-
getJointPose(
XRJointSpace joint, XRSpace baseSpace) → XRJointPose? -
Available on XRFrame, provided by the PropsXRFrame extension
-
getLightEstimate(
XRLightProbe lightProbe) → XRLightEstimate? -
Available on XRFrame, provided by the PropsXRFrame extension
-
getPose(
XRSpace space, XRSpace baseSpace) → XRPose? -
Available on XRFrame, provided by the PropsXRFrame extension
-
getViewerPose(
XRReferenceSpace referenceSpace) → XRViewerPose? -
Available on XRFrame, provided by the PropsXRFrame extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited