Face.State


class Face.State : Trackable.State


The representation of the current state of Face.

Summary

Public functions

open operator Boolean
equals(other: Any?)
@FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float

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

open Int
open String

Public properties

Map<FaceBlendShapeTypeFloat>
Face

self-reference to the object that owns this state.

open TrackingState

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

getConfidence

Added in 1.0.0-alpha14
fun getConfidence(region: FaceConfidenceRegion): @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float

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

Parameters
region: FaceConfidenceRegion

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

blendShapes

Added in 1.0.0-alpha14
val blendShapesMap<FaceBlendShapeTypeFloat>

owner

Added in 1.0.0-alpha14
val ownerFace

self-reference to the object that owns this state.

trackingState

open val trackingStateTrackingState

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