@mega-yfue/eufy-sdk / CameraActions
Type Alias: CameraActions
ts
type CameraActions = Surface<typeof CAMERA_MEMBERS> & object;Bound camera controls — the object returned by dev.camera().
The reads, their setters and the media methods are all DERIVED from CAMERA_MEMBERS: one declaration per feature gives the getter, the setter, its argument type and its description, and a media method takes its signature from MediaProvider itself. The media half lands optional because it exists only on a device bound to a provider. Only the no-argument power verbs — which carry no value, so no member can hold them — are written out below.
Type Declaration
off()
ts
off(): Promise<void>;Power the camera off.
Returns
Promise<void>
on()
ts
on(): Promise<void>;Power the camera on.
Returns
Promise<void>