useConsoleControls
useConsoleControls(
deviceId):ConsoleControlsResult
Defined in: console-sdk/src/react/hooks/useConsoleControls.ts:111
Per-device console controls (SDK_PLAN.md §3.7 row 13). Always callable and identity-stable per device; buttons wire without phase narrowing.
Parameters
Section titled “Parameters”deviceId
Section titled “deviceId”DeviceId | null | undefined
the device to control, or null/undefined for an inert
(DEV-warned no-op) controls object.
Returns
Section titled “Returns”the ConsoleControlsResult — bare setDisplayUnits (never
rejects) plus setDisplayUnitsAsync (rejects).
Example
Section titled “Example”const { setDisplayUnits } = useConsoleControls(deviceId);<UnitPicker value={device.displayUnits} onChange={setDisplayUnits} />