FakeRuntimeFace


public final class FakeRuntimeFace


Fake implementation of androidx.xr.arcore.internal.Face for testing purposes.

Summary

Public constructors

FakeRuntimeFace(
    @NonNull TrackingState trackingState,
    boolean isValid,
    @NonNull float[] blendShapeValues,
    @NonNull float[] confidenceValues
)

Public methods

@NonNull float[]

The array of blend shape values.

@NonNull float[]

The array of confidence values.

@NonNull TrackingState

The current tracking state of the face.

boolean

Indicates whether the face is valid.

void
setBlendShapeValues(@NonNull float[] blendShapeValues)

The array of blend shape values.

void
setConfidenceValues(@NonNull float[] confidenceValues)

The array of confidence values.

void

The current tracking state of the face.

void
setValid(boolean isValid)

Indicates whether the face is valid.

Public constructors

FakeRuntimeFace

Added in 1.0.0-alpha06
public FakeRuntimeFace(
    @NonNull TrackingState trackingState,
    boolean isValid,
    @NonNull float[] blendShapeValues,
    @NonNull float[] confidenceValues
)

Public methods

getBlendShapeValues

Added in 1.0.0-alpha06
public @NonNull float[] getBlendShapeValues()

The array of blend shape values.

getConfidenceValues

Added in 1.0.0-alpha06
public @NonNull float[] getConfidenceValues()

The array of confidence values.

getTrackingState

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

The current tracking state of the face.

isValid

Added in 1.0.0-alpha06
public boolean isValid()

Indicates whether the face is valid.

setBlendShapeValues

Added in 1.0.0-alpha06
public void setBlendShapeValues(@NonNull float[] blendShapeValues)

The array of blend shape values.

setConfidenceValues

Added in 1.0.0-alpha06
public void setConfidenceValues(@NonNull float[] confidenceValues)

The array of confidence values.

setTrackingState

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

The current tracking state of the face.

setValid

Added in 1.0.0-alpha06
public void setValid(boolean isValid)

Indicates whether the face is valid.