Hand
class Hand
Contains the tracking information of one of the user's hands.
Summary
Nested types |
|---|
enum Hand.HandSide : EnumThe handedness of the user's hand. |
class Hand.StateThe representation of the current state of |
Public companion functions |
|
|---|---|
Hand.HandSide |
getPrimaryHandSide(resolver: ContentResolver)Returns the handedness of the user's primary hand. |
Hand? |
Returns the Hand object that corresponds to the user's left hand when available. |
Hand? |
Returns the Hand object that corresponds to the user's right hand when available. |
Public properties |
|
|---|---|
StateFlow<Hand.State> |
The current |
Extension properties |
|
|---|---|
Flowable<Hand.State> |
The current State of this hand. |
Public companion functions
getPrimaryHandSide
fun getPrimaryHandSide(resolver: ContentResolver): Hand.HandSide
Returns the handedness of the user's primary hand.
| Parameters | |
|---|---|
resolver: ContentResolver |
the |
| Returns | |
|---|---|
Hand.HandSide |
the |
left
fun left(session: Session): Hand?
Returns the Hand object that corresponds to the user's left hand when available.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if |
right
fun right(session: Session): Hand?
Returns the Hand object that corresponds to the user's right hand when available.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if |
Public functions
Public properties
Extension properties
stateAsFlowable
val Hand.stateAsFlowable: Flowable<Hand.State>
The current State of this hand.