Hand.State


public final class Hand.State


The representation of the current state of Hand.

Summary

Public constructors

State(
    @NonNull TrackingState trackingState,
    @NonNull ByteBuffer handJointsBuffer
)

Public methods

boolean
equals(Object other)
final @NonNull Map<@NonNull HandJointType, @NonNull Pose>

Returns the current pose of each joint in the hand.

final @NonNull ByteBuffer

the ByteBuffer containing the pose of each joint in the hand.

final @NonNull TrackingState

the current TrackingState of the hand.

int

Public constructors

State

Added in 1.0.0-alpha04
public State(
    @NonNull TrackingState trackingState,
    @NonNull ByteBuffer handJointsBuffer
)
Parameters
@NonNull TrackingState trackingState

the current TrackingState of the hand.

@NonNull ByteBuffer handJointsBuffer

the ByteBuffer containing the pose of each joint in the hand.

Public methods

equals

public boolean equals(Object other)

getHandJoints

Added in 1.0.0-alpha04
public final @NonNull Map<@NonNull HandJointType, @NonNull PosegetHandJoints()

Returns the current pose of each joint in the hand.

Returns
@NonNull Map<@NonNull HandJointType, @NonNull Pose>

a map of HandJointType to Pose representing the current pose of each joint in the hand.

getHandJointsBuffer

Added in 1.0.0-alpha04
public final @NonNull ByteBuffer getHandJointsBuffer()

the ByteBuffer containing the pose of each joint in the hand.

getTrackingState

Added in 1.0.0-alpha04
public final @NonNull TrackingState getTrackingState()

the current TrackingState of the hand.

hashCode

public int hashCode()