Enable myclub App Widget
npm install myclub-widget-plugin
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Echoes the value back to the caller.
Param | Type | Description |
---|---|---|
options |
{ value: string; } |
An object containing the value to be echoed. |
Returns: Promise<{ value: string; }>
setItem(options: { key: string; value: string; group: string; }) => Promise<{ results: boolean; }>
Sets an item in UserDefaults within a specified App Group.
Param | Type | Description |
---|---|---|
options |
{ key: string; value: string; group: string; } |
An object containing the key, value, and App Group identifier. |
Returns: Promise<{ results: boolean; }>
reloadAllTimelines() => Promise<{ results: boolean; }>
Reloads all widget timelines in the app.
Returns: Promise<{ results: boolean; }>
reloadTimelines(options: { ofKind: string; }) => Promise<{ results: boolean; }>
Reloads specific widget timelines in the app by their kind.
Param | Type | Description |
---|---|---|
options |
{ ofKind: string; } |
An object containing the kind of the widget to reload. |
Returns: Promise<{ results: boolean; }>