29 lines
1.2 KiB
Go
29 lines
1.2 KiB
Go
// pkg/lifecycle/messages.go
|
|
package lifecycle
|
|
|
|
// All lifecycle events are broadcasts (Actions). There are no Queries or Tasks.
|
|
|
|
// ActionApplicationStarted fires when the platform application starts.
|
|
// Distinct from core.ActionServiceStartup — this is platform-level readiness.
|
|
type ActionApplicationStarted struct{}
|
|
|
|
// ActionOpenedWithFile fires when the application is opened with a file argument.
|
|
type ActionOpenedWithFile struct{ Path string }
|
|
|
|
// ActionWillTerminate fires when the application is about to terminate (macOS only).
|
|
type ActionWillTerminate struct{}
|
|
|
|
// ActionDidBecomeActive fires when the application becomes the active app (macOS only).
|
|
type ActionDidBecomeActive struct{}
|
|
|
|
// ActionDidResignActive fires when the application resigns active status (macOS only).
|
|
type ActionDidResignActive struct{}
|
|
|
|
// ActionPowerStatusChanged fires on power status changes (Windows only: APMPowerStatusChange).
|
|
type ActionPowerStatusChanged struct{}
|
|
|
|
// ActionSystemSuspend fires when the system is about to suspend (Windows only: APMSuspend).
|
|
type ActionSystemSuspend struct{}
|
|
|
|
// ActionSystemResume fires when the system resumes from suspend (Windows only: APMResume).
|
|
type ActionSystemResume struct{}
|