XRHitTestResult class
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebXR Device API contains a single result
of a hit test. You can get an array of objects for a frame by
calling XRFrame.getHitTestResults()
.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- XRHitTestResult()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createAnchor(
) → Future< XRAnchor> -
Available on XRHitTestResult, provided by the PropsXRHitTestResult extension
-
getPose(
XRSpace baseSpace) → XRPose? -
Available on XRHitTestResult, provided by the PropsXRHitTestResult 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