DVXRBindingDevice class final
The XR device reached through generated native bindings.
A binding that is not registered, throws, or answers the wrong shape is a
DVXRBindingException (DV-XR-006), never a silent null: null is kept
for the platform declining, which a binding says on purpose.
- Implemented types
Constructors
- DVXRBindingDevice({DVSpatialConvention convention = DVSpatialConvention.openXR})
-
const
Properties
- convention → DVSpatialConvention
-
The convention poses, anchors and rays are reported in.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeSession(
String session) → Future< void> -
xr.session.close: tracking stops.override -
closeSpace(
String space) → Future< void> -
xr.space.close. The camera feed of a closed space is off.override -
createAnchor(
String session, DVAnchor anchor) → Future< String?> -
xr.anchor.create. Null when the platform could not make one.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
String session) → Stream< DVXRDeviceEvent> -
Events from
xr.input.observe, which answers with a stream of payloads.override -
openSession(
) → Future< String?> -
xr.session.open: tracking starts.override -
openSpace(
String session, DVSpatialSpaceRequest request) → Future< String?> -
xr.space.open.override -
persistAnchor(
String session, String anchor) → Future< String?> -
xr.anchor.persist: an opaque OS token for a located anchor, or null.override -
probeEnvironment(
String session) → Future< DVSpatialLightProbe?> -
xr.environment.probe: real-world lighting, or null where none.override -
queryCapability(
) → Future< DVSpatialCapability?> -
xr.capability.query. Null on a target that is not a headset or glasses.override -
resolveAnchor(
String session, String token) → Future< String?> -
xr.anchor.resolve: the anchor a token names, or null when it could not be re-localized.override -
setPassthrough(
String space, bool enabled) → Future< void> -
xr.passthrough.set. The device confirms with DVXRPassthroughChanged.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decodeEvent(
Object? payload) → DVXRDeviceEvent? - One event payload. An event type this version does not know is null and skipped; a known type with the wrong shape throws.