Documentation
¶
Overview ¶
Package activity contains the pluggable "activator" strategies that keep a Teams session showing as Available: synthetic input (per-OS backends) and the Microsoft Graph preferred-presence strategy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessibilityTrusted ¶
func AccessibilityTrusted() bool
AccessibilityTrusted is a no-op on Linux (always trusted).
func InputSupported ¶
func InputSupported() bool
InputSupported reports whether this build has a working synthetic-input backend for the current OS.
Types ¶
type Activator ¶
type Activator interface {
// Name is a short identifier used in status and logs.
Name() string
// Tick performs one activation pulse.
Tick(ctx context.Context) error
// Stop releases resources and reverts any externally-visible state.
Stop(ctx context.Context) error
}
Activator is one strategy for keeping the session active.
Tick performs a single activation pulse and is called by the engine on the configured interval while the schedule is active. Stop is called when the schedule transitions to inactive (and on shutdown) so the activator can release any held resources — power assertions, virtual input devices, or a sticky Graph presence.