Skip to content

ClientHookApi

This content is for v0.1. Switch to the latest version for up-to-date documentation.

Defined in: hooks.ts:111

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

Defined in: hooks.ts:120

string

string

string

void


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

Defined in: hooks.ts:121

Record<string, unknown>


haptic: object

Defined in: hooks.ts:114

error: () => void

void

success: () => void

void

tap: () => void

void

warning: () => void

void


isWindowFocused: () => boolean

Defined in: hooks.ts:122

boolean


playSound: (name) => void

Defined in: hooks.ts:112

string

void


showToast: (opts, type?) => void

Defined in: hooks.ts:113

unknown[]

string

string

string

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

void