CameraHistoryTrait.EventTrack

class CameraHistoryTrait.EventTrack : ClusterStruct


A track of detected events within a camera session, with details about what was detected.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

EventTrack(
    trackId: String,
    startTimestampMillis: ULong,
    endTimestampMillis: ULong,
    eventTypes: List<CameraHistoryTrait.EventType>,
    zones: List<CameraHistoryTrait.Zone>,
    face: CameraHistoryTrait.Face
)

Creates the EventTrack 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 properties

ULong

The timestamp in milliseconds since the Unix epoch of the end of the track.

List<CameraHistoryTrait.EventType>

The types of events that were detected in this track, whose values come from EventType.

CameraHistoryTrait.Face

The face that was detected in this track.

ULong

The timestamp in milliseconds since the Unix epoch of the start of the track.

String

The ID of the track.

List<CameraHistoryTrait.Zone>

Zones in this track where an event was detected.

Public constructors

EventTrack

EventTrack(
    trackId: String = "",
    startTimestampMillis: ULong,
    endTimestampMillis: ULong,
    eventTypes: List<CameraHistoryTrait.EventType> = emptyList(),
    zones: List<CameraHistoryTrait.Zone> = emptyList(),
    face: CameraHistoryTrait.Face = Face()
)

Creates the EventTrack 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

endTimestampMillis

val endTimestampMillisULong

The timestamp in milliseconds since the Unix epoch of the end of the track.

eventTypes

val eventTypesList<CameraHistoryTrait.EventType>

The types of events that were detected in this track, whose values come from EventType.

face

val faceCameraHistoryTrait.Face

The face that was detected in this track. The face values come from Face.

startTimestampMillis

val startTimestampMillisULong

The timestamp in milliseconds since the Unix epoch of the start of the track.

trackId

val trackIdString

The ID of the track.

zones

val zonesList<CameraHistoryTrait.Zone>

Zones in this track where an event was detected. The zone values come from Zone.