Access via:
io.v2.defaultDefaultLayoutAPIinterface
API for managing the default Global Layout which io.Connect Desktop will load upon startup.
4 Methods
get()⚓︎
() => Promise<Layout | null>
Retrieves the default Global Layout. Resolves with null if no default Global Layout has been set.
onChanged()⚓︎
(handler: (layout: Layout | null) => void) => Promise<UnsubscribeFunction>
set()⚓︎
(layout: LayoutSelect) => Promise<void>
Sets a new default Global Layout.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| layout⚓︎ | LayoutSelect | The Layout to set as the new default Global Layout. |