Face.State


public final class Face.State implements Trackable.State


The representation of the current state of Face.

Summary

Public methods

boolean
equals(Object other)
final @NonNull Map<@NonNull FaceBlendShapeType, @NonNull Float>
final @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) float

Gets the confidence value of the face tracker for the given region.

final @NonNull Face

self-reference to the object that owns this state.

@NonNull TrackingState

the current androidx.xr.runtime.TrackingState of the face

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getBlendShapes

Added in 1.0.0-alpha14
public final @NonNull Map<@NonNull FaceBlendShapeType, @NonNull FloatgetBlendShapes()

getConfidence

Added in 1.0.0-alpha14
public final @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) float getConfidence(@NonNull FaceConfidenceRegion region)

Gets the confidence value of the face tracker for the given region.

Parameters
@NonNull FaceConfidenceRegion region

the FaceConfidenceRegion to get the confidence value for

Returns
@FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) float

the confidence value in the range [0.0, 1.0] of the face tracker for the given region

Throws
IllegalArgumentException

if the region does not exist

IllegalStateException

if the Face does not provide confidence values

getOwner

Added in 1.0.0-alpha14
public final @NonNull Face getOwner()

self-reference to the object that owns this state.

getTrackingState

public @NonNull TrackingState getTrackingState()

the current androidx.xr.runtime.TrackingState of the face

hashCode

public int hashCode()

toString

public @NonNull String toString()