PluginKeys
The values that a plugin can watch with ctx.observe. Each value is identified by a key: ctx.keys.net holds the keys that describe synchronization with the other devices, and ctx.keys.app holds the keys that describe the app itself.
Properties
Section titled “Properties”readonly app: Readonly<{ language: Key<string>;}>;The state of the app. ctx.keys.app.language is the language the app speaks, as a code such as en or fr.
readonly net: Readonly<{ device: (id) => Key<{ connected: boolean; current: boolean; last: number; name: string | null; received: number; sent: number; }>; devices: Key<readonly string[]>; state: Key<string>; sync: Key<SyncActivity>;}>;The state of syncing with the other devices: ctx.keys.net.state, ctx.keys.net.sync, ctx.keys.net.devices, and so on.
