mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 21:12:11 +08:00

* Patch for file dialog on OSX * Update CONTRIBUTORS.md * 262 add wails shutdown method (#264) * feat: support close in bridge mode * feat: WailsShutdown callback Now handles proper shutdown through: * runtime.Window.Close() * Killing the main window * Ctrl-C * chore: version bump
13 lines
315 B
Go
13 lines
315 B
Go
package interfaces
|
|
|
|
import "github.com/wailsapp/wails/lib/messages"
|
|
|
|
// EventManager is the event manager interface
|
|
type EventManager interface {
|
|
PushEvent(*messages.EventData)
|
|
Emit(eventName string, optionalData ...interface{})
|
|
On(eventName string, callback func(...interface{}))
|
|
Start(Renderer)
|
|
Shutdown()
|
|
}
|