Skip to content

@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>

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.