@camera.ui/sdk / sensor / FaceSensorLike
Interface: FaceSensorLike
Defined in: sensor/face.ts:43
Read-only proxy interface for a face sensor.
Extends
Properties
capabilities
readonlycapabilities:string[]
Defined in: sensor/base.ts:149
Inherited from
displayName
readonlydisplayName:string
Defined in: sensor/base.ts:147
Inherited from
id
readonlyid:string
Defined in: sensor/base.ts:144
Inherited from
name
readonlyname:string
Defined in: sensor/base.ts:146
Inherited from
onCapabilitiesChanged
readonlyonCapabilitiesChanged:Observable<string[]>
Defined in: sensor/base.ts:170
Observable for capability changes. Emits the full capabilities array when capabilities change.
Inherited from
SensorLike.onCapabilitiesChanged
onPropertyChanged
readonlyonPropertyChanged:Observable<PropertyChangeOf<FaceSensorProperties>>
Defined in: sensor/face.ts:47
Property change observable narrowed to face properties.
Overrides
pluginId?
readonlyoptionalpluginId?:string
Defined in: sensor/base.ts:148
Inherited from
type
readonlytype:Face
Defined in: sensor/face.ts:45
Sensor type discriminant.
Overrides
Methods
getValue()
Call Signature
getValue(
property):boolean|undefined
Defined in: sensor/face.ts:49
Get the current value of a sensor property
Parameters
property
Detected
Returns
boolean | undefined
Overrides
Call Signature
getValue(
property):FaceDetection[] |undefined
Defined in: sensor/face.ts:50
Get the current value of a sensor property
Parameters
property
Detections
Returns
FaceDetection[] | undefined
Overrides
SensorLike.getValue
Call Signature
getValue(
property):unknown
Defined in: sensor/face.ts:51
Get the current value of a sensor property
Parameters
property
string
Returns
unknown
Overrides
SensorLike.getValue
getValues()
getValues():
Readonly<Record<string,unknown>>
Defined in: sensor/base.ts:154
Get a read-only snapshot of all property values
Returns
Readonly<Record<string, unknown>>
Inherited from
hasCapability()
hasCapability(
capability):boolean
Defined in: sensor/base.ts:171
Parameters
capability
string
Returns
boolean
Inherited from
updateValue()
updateValue(
property,value):void|Promise<void>
Defined in: sensor/base.ts:166
Write a property generically. Cross-process bridges (e.g. HomeKit) bind generic property names to UI characteristics and call this on a sensor proxy — the proxy forwards via RPC to the owning sensor, where control sensor classes (Light, Siren, etc.) override updateValue to dispatch to the appropriate semantic method (setOn, setActive, ...). This means plugin-side hardware-action overrides ARE honored end-to-end.
Plugin authors must not call this — they should call the semantic methods directly on the concrete sensor class.
Parameters
property
string
value
unknown
Returns
void | Promise<void>