Documentation
¶
Index ¶
- func BlockApp(name string) error
- func BlockURL(url string, title string, reason string, tags string, bundleID string) error
- func GetIdentity() (string, error)
- func MinimiseApp(bundleID string) error
- func OnActiveAppTitleChange(_ context.Context, fn func(event NativeEvent))
- type AxEventType
- type NativeEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIdentity ¶
func MinimiseApp ¶
func OnActiveAppTitleChange ¶
func OnActiveAppTitleChange(_ context.Context, fn func(event NativeEvent))
Types ¶
type AxEventType ¶
type AxEventType int
AxEventType represents the type of accessibility event
const ( // AxEventTypeTitle is fired when the frontmost window's title changes AxEventTypeTitle AxEventType = 1 // AxEventTypeIdle is fired when user idle state changes AxEventTypeIdle AxEventType = 2 )
type NativeEvent ¶
type NativeEvent struct {
Type AxEventType
PID int
ExecutablePath string
AppName string
BundleID string
Icon string
Title string
AppIcon string // base64 encoded PNG
URL string
}
NativeEvent represents an accessibility event from the observer
func (*NativeEvent) BrowserHostname ¶
func (e *NativeEvent) BrowserHostname() string
func (*NativeEvent) Domain ¶
func (e *NativeEvent) Domain() string
Click to show internal directories.
Click to hide internal directories.