CameraHistoryTrait.Face

class CameraHistoryTrait.Face : ClusterStruct


Information about a face that was detected by the camera.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

Face(
    faceId: String,
    name: String,
    category: CameraHistoryTrait.FaceCategory,
    mostRepresentativeFaceInstance: CameraHistoryTrait.FaceInstance,
    faceInstance: OptionalValue<CameraHistoryTrait.FaceInstance>
)

Creates the Face class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public constructors

Face

Face(
    faceId: String = "",
    name: String = "",
    category: CameraHistoryTrait.FaceCategory = FaceCategory.Known,
    mostRepresentativeFaceInstance: CameraHistoryTrait.FaceInstance = FaceInstance(),
    faceInstance: OptionalValue<CameraHistoryTrait.FaceInstance> = OptionalValue.absent()
)

Creates the Face class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

faceId

val faceId: String

The ID of the face that was detected.

mostRepresentativeFaceInstance

val mostRepresentativeFaceInstance: CameraHistoryTrait.FaceInstance

name

val name: String