FakeRuntimeHand


public final class FakeRuntimeHand


Test-only implementation of androidx.xr.arcore.runtime.Hand.

Summary

Public constructors

FakeRuntimeHand(
    @NonNull TrackingState trackingState,
    @NonNull FloatBuffer handJointsBuffer
)

Public methods

@NonNull FloatBuffer

The value describing the data of the hand, including trackingState and handJoints' poses.

@NonNull TrackingState

The current androidx.xr.runtime.TrackingState of the hand's data.

void

The value describing the data of the hand, including trackingState and handJoints' poses.

void

The current androidx.xr.runtime.TrackingState of the hand's data.

Public constructors

FakeRuntimeHand

Added in 1.0.0-alpha07
public FakeRuntimeHand(
    @NonNull TrackingState trackingState,
    @NonNull FloatBuffer handJointsBuffer
)

Public methods

getHandJointsBuffer

Added in 1.0.0-alpha07
public @NonNull FloatBuffer getHandJointsBuffer()

The value describing the data of the hand, including trackingState and handJoints' poses.

getTrackingState

Added in 1.0.0-alpha07
public @NonNull TrackingState getTrackingState()

The current androidx.xr.runtime.TrackingState of the hand's data.

setHandJointsBuffer

Added in 1.0.0-alpha07
public void setHandJointsBuffer(@NonNull FloatBuffer handJointsBuffer)

The value describing the data of the hand, including trackingState and handJoints' poses.

setTrackingState

Added in 1.0.0-alpha07
public void setTrackingState(@NonNull TrackingState trackingState)

The current androidx.xr.runtime.TrackingState of the hand's data.