class Hand : Trackable


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

Summary

Nested types

The handedness of the user's hand.

The representation of the current state of a Hand.

Public companion functions

Hand.HandSide

Returns the handedness of the user's primary hand.

Hand?
left(session: Session)

Returns the Hand object that corresponds to the user's left hand when available.

Hand?
right(session: Session)

Returns the Hand object that corresponds to the user's right hand when available.

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

open StateFlow<Hand.State>

The current State of this hand.

Extension properties

Flowable<Hand.State>

The current State of this hand.

Public companion functions

getPrimaryHandSide

Added in 1.0.0-alpha12
fun getPrimaryHandSide(resolver: ContentResolver): Hand.HandSide

Returns the handedness of the user's primary hand.

Parameters
resolver: ContentResolver

the ContentResolver to use to retrieve the setting

Returns
Hand.HandSide

the HandSide of the user's primary hand. If the setting is not configured, returns HandSide.UNKNOWN.

left

Added in 1.0.0-alpha12
fun left(session: Session): Hand?

Returns the Hand object that corresponds to the user's left hand when available.

Parameters
session: Session

the currently active Session

right

Added in 1.0.0-alpha12
fun right(session: Session): Hand?

Returns the Hand object that corresponds to the user's right hand when available.

Parameters
session: Session

the currently active Session

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

state

open val stateStateFlow<Hand.State>

The current State of this hand.

Extension properties

stateAsFlowable

val Hand.stateAsFlowableFlowable<Hand.State>

The current State of this hand.