An XR device.
Null from a method that returns a handle is the designed way of saying the
platform declined (DV-WINDOW-004 for a space). A thrown exception is the
binding breaking (DV-XR-006).
Properties
- convention → DVSpatialConvention
-
The convention poses, anchors and rays are reported in.
no setter
- 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. -
closeSpace(
String space) → Future< void> -
xr.space.close. The camera feed of a closed space is off. -
createAnchor(
String session, DVAnchor anchor) → Future< String?> -
xr.anchor.create. Null when the platform could not make one. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
String session) → Stream< DVXRDeviceEvent> -
xr.input.observe: everything the device reports forsession. -
openSession(
) → Future< String?> -
xr.session.open: tracking starts. -
openSpace(
String session, DVSpatialSpaceRequest request) → Future< String?> -
xr.space.open. -
persistAnchor(
String session, String anchor) → Future< String?> -
xr.anchor.persist: an opaque OS token for a located anchor, or null. -
probeEnvironment(
String session) → Future< DVSpatialLightProbe?> -
xr.environment.probe: real-world lighting, or null where none. -
queryCapability(
) → Future< DVSpatialCapability?> -
xr.capability.query. Null on a target that is not a headset or glasses. -
resolveAnchor(
String session, String token) → Future< String?> -
xr.anchor.resolve: the anchor a token names, or null when it could not be re-localized. -
setPassthrough(
String space, bool enabled) → Future< void> -
xr.passthrough.set. The device confirms with DVXRPassthroughChanged. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
bindingNames
→ const Set<
String> - Every binding a device is reached through, as the specification names them.