XrCapability class final
What an XR runtime can do: the modes it runs in and the features beside them.
Open, under S0. A runtime of a later minor brings features these do
not name (foveation by eye gaze, body tracking, space warp), so this is
a class with constants; a session refuses a missing one with
UnsupportedCapabilityException naming it, as a device refuses a
feature.
Properties
- askedBy → String
-
Where a caller asks for this capability before calling, as code
(
`GraphicsDevice.features`); null when there is nowhere to ask.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The stable name, and the wire name. Never renamed within a major.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
byName(
String name) → XrCapability? -
The value called
name, or null for a name this version does not know.
Constants
- anchors → const XrCapability
- Points fixed to the real world that the runtime keeps (XrAnchor).
- cylinderLayers → const XrCapability
- A curved layer around the viewer (XrCylinderLayer).
- depthOcclusion → const XrCapability
-
How far the real world is, a picture of depth per view
(
EnvironmentDepth). - eyeGaze → const XrCapability
- Where the eyes look.
- hands → const XrCapability
-
Hands tracked joint by joint (
XrHandJoint). - haptics → const XrCapability
- A controller that vibrates (XrSession.vibrate).
- immersiveAr → const XrCapability
- A headset or a phone showing the real world, the virtual drawn over it.
- immersiveVr → const XrCapability
- A headset's own display, the world drawn all around.
- inline → const XrCapability
- A view inside the page or the app, posed by the device but drawn into Flutter's own surface: a phone held up, a phone in a holder.
- lightEstimation → const XrCapability
- The room's light, measured (XrLightEstimate).
- passthrough → const XrCapability
- The cameras' picture of the room behind the virtual one.
- planes → const XrCapability
- Flat surfaces found in the room (XrPlane).
- quadLayers → const XrCapability
- A flat layer in the world beside the projection (XrQuadLayer).
- sceneMesh → const XrCapability
- A mesh of the room (XrSceneMesh).
-
values
→ const List<
XrCapability> - Every value this version names, in declaration order. A later version appends; nothing is removed or renamed within a major.