Skip to content

myclubapp/widget-plugin

Repository files navigation

myclub-widget-plugin

Enable myclub App Widget

Install

npm install myclub-widget-plugin
npx cap sync

API

echo(...)

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(...)

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()

reloadAllTimelines() => Promise<{ results: boolean; }>

Reloads all widget timelines in the app.

Returns: Promise<{ results: boolean; }>


reloadTimelines(...)

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; }>


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published