Skip to content
PricingReleases

ClientHookApi

Defined in: hooks.ts:125

desktopNotify: (title, body, icon?) => void

Defined in: hooks.ts:134

string

string

string

void


getSettings: () => Record<string, unknown>

Defined in: hooks.ts:141

Notification-relevant app settings only (keys starting with notify, sound, haptics, desktopNotification, quietHours, volume). Hooks never see the full settings object — fetch your own plugin’s settings via /api/plugin-settings/:pluginId if you need more.

Record<string, unknown>


haptic: object

Defined in: hooks.ts:128

error: () => void

void

success: () => void

void

tap: () => void

void

warning: () => void

void


isWindowFocused: () => boolean

Defined in: hooks.ts:142

boolean


playSound: (name) => void

Defined in: hooks.ts:126

string

void


showToast: (opts, type?) => void

Defined in: hooks.ts:127

unknown[]

string

string

string

"error" | "warning" | "info" | "success"

void