ObjectDetectionTrait.ObjectDetected

interface ObjectDetectionTrait.ObjectDetected : ClusterStruct


Detection notification event.

Summary

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

Long?

The Unix Epoch timestamp in milliseconds at which the object was detected.

ObjectDetectionTrait.Objects?

The objects detected, listed by category.

Int?

The notification level.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

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

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

Public properties

detectionTimestampMillis

val detectionTimestampMillisLong?

The Unix Epoch timestamp in milliseconds at which the object was detected.

objects

val objectsObjectDetectionTrait.Objects?

The objects detected, listed by category.

priority

val priorityInt?

The notification level. The currently supported value is 0, which indicates that the notification should be spoken.