Skip to content
PricingReleases

ClientHookApi

Defined in: hooks.ts:129

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

Defined in: hooks.ts:138

string

string

string

void


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

Defined in: hooks.ts:145

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:132

error: () => void

void

success: () => void

void

tap: () => void

void

warning: () => void

void


isWindowFocused: () => boolean

Defined in: hooks.ts:146

boolean


playSound: (name) => void

Defined in: hooks.ts:130

string

void


showToast: (opts, type?) => void

Defined in: hooks.ts:131

unknown[]

string

string

string

string

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

void