Enum Class XRSessionFeatures
- All Implemented Interfaces:
Serializable, Comparable<XRSessionFeatures>, Constable, Enumeration
@Generated("org.javagi.JavaGI")
public enum XRSessionFeatures
extends Enum<XRSessionFeatures>
implements Enumeration
Enum values representing the XR session features.
See https://immersive-web.github.io/webxr/`xrreferencespace`-interface. And, see https://immersive-web.github.io/webxr-hand-input/ for hand tracking.
- Since:
- 2.52
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionbounded-floor feature.hand tracking feature.hit test feature.WebXR Layers feature.local feature.local-floor feature.unbounded feature.viewer feature. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the XRSessionFeatures class.intgetValue()Get the numeric value of this enumstatic Set<XRSessionFeatures> of(int flags) Create a newEnumSet<XRSessionFeatures>for the provided bitfieldstatic Set<XRSessionFeatures> of(MemorySegment address) Create a newEnumSet<XRSessionFeatures>for the bitfield in the provided memory address.static XRSessionFeaturesReturns the enum constant of this class with the specified name.static XRSessionFeatures[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VIEWER
viewer feature. -
LOCAL
local feature. -
LOCAL_FLOOR
local-floor feature. -
BOUNDED_FLOOR
bounded-floor feature. -
UNBOUNDED
unbounded feature. -
HAND_TRACKING
hand tracking feature. -
HIT_TEST
hit test feature. -
LAYERS
WebXR Layers feature.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a newEnumSet<XRSessionFeatures>for the provided bitfield- Parameters:
flags- the XRSessionFeatures bitfield- Returns:
- the EnumSet for the provided bitfield
-
of
Create a newEnumSet<XRSessionFeatures>for the bitfield in the provided memory address.- Parameters:
address- the memory address holding a bitfield value- Returns:
- the EnumSet for the bitfield in the provided memory address
-
getType
Get the GType of the XRSessionFeatures class.- Returns:
- the GType
-