public final class Face implements Anchorable


Contains the tracking information of a detected human face.

Summary

Nested types

public final class Face.State implements Trackable.State

The representation of the current state of Face.

Public methods

@NonNull AnchorCreateResult

Create and attach an Anchor to the Face at the given Pose in world space.

boolean
equals(Object other)
@NonNull StateFlow<@NonNull Face.State>

The current State of this Face.

static final Face

Returns the Face object that corresponds to the user.

int
static final @NonNull StateFlow<@NonNull Collection<@NonNull Face>>

Emits the faces that are currently being tracked in the Session.

@NonNull String

Public methods

createAnchor

public @NonNull AnchorCreateResult createAnchor(@NonNull Pose pose)

Create and attach an Anchor to the Face at the given Pose in world space.

equals

public boolean equals(Object other)

getState

public @NonNull StateFlow<@NonNull Face.StategetState()

The current State of this Face.

getUserFace

Added in 1.0.0-alpha12
public static final Face getUserFace(@NonNull Session session)

Returns the Face object that corresponds to the user.

Parameters
@NonNull Session session

the currently active Session

hashCode

public int hashCode()

subscribe

Added in 1.0.0-alpha12
public static final @NonNull StateFlow<@NonNull Collection<@NonNull Face>> subscribe(@NonNull Session session)

Emits the faces that are currently being tracked in the Session.

Parameters
@NonNull Session session

the Session to track faces from

toString

public @NonNull String toString()