FakeRuntimeFace
public final class FakeRuntimeFace
Fake implementation of androidx.xr.arcore.runtime.Face for testing purposes.
Summary
Public constructors |
|---|
FakeRuntimeFace( |
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 |
isValid()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 |
setTrackingState(@NonNull TrackingState trackingState)The current tracking state of the face. |
void |
setValid(boolean isValid)Indicates whether the face is valid. |
Public constructors
FakeRuntimeFace
public FakeRuntimeFace(
@NonNull TrackingState trackingState,
boolean isValid,
@NonNull float[] blendShapeValues,
@NonNull float[] confidenceValues
)
Public methods
getBlendShapeValues
public @NonNull float[] getBlendShapeValues()
The array of blend shape values.
getConfidenceValues
public @NonNull float[] getConfidenceValues()
The array of confidence values.
getTrackingState
public @NonNull TrackingState getTrackingState()
The current tracking state of the face.
setBlendShapeValues
public void setBlendShapeValues(@NonNull float[] blendShapeValues)
The array of blend shape values.
setConfidenceValues
public void setConfidenceValues(@NonNull float[] confidenceValues)
The array of confidence values.
setTrackingState
public void setTrackingState(@NonNull TrackingState trackingState)
The current tracking state of the face.
setValid
public void setValid(boolean isValid)
Indicates whether the face is valid.