public final class Hand


Contains the tracking information of one of the user's hands.

Summary

Nested types

public final class Hand.State

The representation of the current state of Hand.

Public methods

boolean
equals(Object other)
final @NonNull StateFlow<@NonNull Hand.State>

The current State of this hand.

int
static final Hand
left(@NonNull Session session)

Returns the Hand object that corresponds to the user's left hand when available, or null when the platform does not support the feature.

static final Hand
right(@NonNull Session session)

Returns the Hand object that corresponds to the user's right hand when available, or null when the platform does not support the feature.

void

Updates the state of the Updatable.

Public methods

equals

public boolean equals(Object other)

getState

Added in 1.0.0-alpha02
public final @NonNull StateFlow<@NonNull Hand.StategetState()

The current State of this hand.

hashCode

public int hashCode()

left

Added in 1.0.0-alpha02
public static final Hand left(@NonNull Session session)

Returns the Hand object that corresponds to the user's left hand when available, or null when the platform does not support the feature.

Parameters
@NonNull Session session

the currently active Session.

right

Added in 1.0.0-alpha02
public static final Hand right(@NonNull Session session)

Returns the Hand object that corresponds to the user's right hand when available, or null when the platform does not support the feature.

Parameters
@NonNull Session session

the currently active Session.

update

Added in 1.0.0-alpha02
public void update()

Updates the state of the Updatable.