API reference
API reference
Select your platform
No SDKs available
No versions available

SemanticType

SemanticType

enum SemanticType : Enum<SemanticType>
Enum class representing different semantic types for pointer events.
These identify the intention of the event. For example: "Select" indicates a user attempted to select this entity. "Grab" indicates the user attempted to grab this entity. "Scroll" is sent when a user scrolls using an alternate method like thumb-stick.

Entries

NameSummary
Unknown

Smantic type was unspecified.
None

No emantic type was set for this interaction.
Select

This entity was selected (e.g. a mouse left click-down).
Grab

This entity was grabbed (e.g. user is holding the grip button.
Scroll

This entity should be scrolled (e.g. user pressed thumbstick up on a panel.

Properties

NameSummary
id
val id: Int
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): SemanticType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<SemanticType>

Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?