DVSpatialCapability class final
DV.Window.capability.spatial: null on every target that is not a headset
or glasses.
The one place application code may branch -- to decide whether to offer
a spatial control, never whether open() will work.
Constructors
-
DVSpatialCapability({bool panels = false, bool volumes = false, bool immersive = false, bool passthrough = false, DVSpatialPersistence persistence = DVSpatialPersistence.none, Set<
DVSpatialInput> input = const <DVSpatialInput>{}, Set<DVAnchorType> anchors = const <DVAnchorType>{}, bool occlusion = false, bool sceneMesh = false}) -
const
- DVSpatialCapability.glasses()
-
Glasses: HUD-class panels only. No volumes and no immersive space.
factory
- DVSpatialCapability.headset()
-
A headset that can present all three ways. What
DV.Test.fakeXRis usually given.factory
Properties
-
anchors
→ Set<
DVAnchorType> -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- immersive → bool
-
final
-
input
→ Set<
DVSpatialInput> -
final
- occlusion → bool
-
final
- panels → bool
-
final
- passthrough → bool
-
final
- persistence → DVSpatialPersistence
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sceneMesh → bool
-
final
- volumes → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supports(
DVSpatialSpaceKind kind) → bool -
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → DVSpatialCapability -
Reads the payload
xr.capability.queryreturned.