F
setEnabled
Turns automatic syncing on or off. Turning it on syncs right away, or first asks how to combine this device with a cloud setup it has never synced with.
function setEnabled(enabled: boolean): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
| enabled | boolean | Whether to sync automatically. |
Returns
Promise<boolean>Whether turning it on could read the cloud; always true when turning it off.