tray

package
v0.35.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State string

State represents the current tray status.

const (
	StateIdle       State = "idle"
	StateRecording  State = "recording"
	StateProcessing State = "processing"
	StateDone       State = "done"
)

type Tray

type Tray struct {
	OnQuit     func()
	OnSettings func()
	OnFeedback func()
	// contains filtered or unexported fields
}

Tray manages the Wails v3 native system tray.

func New

func New(app *application.App, onQuit, onSettings func()) *Tray

New creates a system tray with menu and icons.

func (*Tray) SetState

func (t *Tray) SetState(state State)

SetState updates the tray tooltip to reflect the current state.

func (*Tray) SetWakeListening added in v0.34.9

func (t *Tray) SetWakeListening(listening bool)

SetWakeListening flips the always-on wake-word indicator. Called by the Device-Target whenever the wake runtime starts or stops so the user always knows when the mic is open for wake detection (privacy contract).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL