Hand
public final class Hand
Contains the tracking information of one of the user's hands.
Summary
Nested types |
|---|
public enum Hand.HandSide extends EnumThe handedness of the user's hand. |
public final class Hand.StateThe representation of the current state of |
Public methods |
|
|---|---|
boolean |
|
static final @NonNull Hand.HandSide |
getPrimaryHandSide(@NonNull ContentResolver resolver)Returns the handedness of the user's primary hand. |
final @NonNull StateFlow<@NonNull Hand.State> |
getState()The current |
int |
hashCode() |
static final Hand |
Returns the Hand object that corresponds to the user's left hand when available. |
static final Hand |
Returns the Hand object that corresponds to the user's right hand when available. |
Extension functions |
|
|---|---|
final @NonNull Flowable<@NonNull Hand.State> |
RxJava3HandKt.getStateAsFlowable(@NonNull Hand receiver)The current State of this hand. |
Public methods
getPrimaryHandSide
public static final @NonNull Hand.HandSide getPrimaryHandSide(@NonNull ContentResolver resolver)
Returns the handedness of the user's primary hand.
| Parameters | |
|---|---|
@NonNull ContentResolver resolver |
the |
| Returns | |
|---|---|
@NonNull Hand.HandSide |
the |
getState
public final @NonNull StateFlow<@NonNull Hand.State> getState()
The current State of this hand.
left
public static final Hand left(@NonNull Session session)
Returns the Hand object that corresponds to the user's left hand when available.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if |
right
public static final Hand right(@NonNull Session session)
Returns the Hand object that corresponds to the user's right hand when available.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if |
Extension functions
RxJava3HandKt.getStateAsFlowable
public final @NonNull Flowable<@NonNull Hand.State> RxJava3HandKt.getStateAsFlowable(@NonNull Hand receiver)
The current State of this hand.