Versions in this module Expand all Collapse all v0 v0.1.0 Sep 10, 2026 Changes in this version + var ErrAutostartNotSupported = errors.New("appkit: autostart is not supported on this platform") + var ErrScheme = errors.New("appkit: refused URL scheme") + type App struct + Bind map[string]any + Debug bool + Events string + Exec func(args []string) + Exit bool + FS fs.FS + HTTP bool + ID string + Icon []byte + Name string + Tray *tray.Config + func (a *App) Autostart() *Autostart + func (a *App) Backend() string + func (a *App) Copy(b []byte) error + func (a *App) Notify(title, message string) error + func (a *App) Open(rawurl string) error + func (a *App) Paste() ([]byte, error) + func (a *App) Quit() + func (a *App) Reveal(path string) error + func (a *App) Show(view *View) error + func (a *App) Wait() error + type Autostart struct + func (a *Autostart) Backend() string + func (a *Autostart) Disable() error + func (a *Autostart) Enable(args ...string) error + func (a *Autostart) Enabled() bool + func (a *Autostart) Path() string + type State int + const StateFixed + const StateMax + const StateMin + const StateNone + type View struct + Bind map[string]any + Debug bool + FirstMouse bool + Frame bool + Height int + Left int + Ready func() + State State + Top int + URL string + Width int + func (v *View) Close() + func (v *View) Dialog(opts dialog.Options) ([]string, error) + func (v *View) Emit(name string, data ...any) error + func (v *View) Eval(js string) + func (v *View) Focus(raise bool) + func (v *View) Hide() + func (v *View) Maximize() + func (v *View) Minimize() + func (v *View) Navigate(url string) + func (v *View) Off(name string) + func (v *View) On(name string, handler func(args ...json.RawMessage)) (cancel func()) + func (v *View) Show() + func (v *View) Unmaximize() + func (v *View) Unminimize() + func (v *View) Window(f func(wnd unsafe.Pointer))