rum-goggles/vendor/github.com/wailsapp/wails/v2/internal/frontend/events.go

12 lines
384 B
Go
Raw Normal View History

2024-02-23 16:39:16 +00:00
package frontend
type Events interface {
On(eventName string, callback func(...interface{})) func()
OnMultiple(eventName string, callback func(...interface{}), counter int) func()
Once(eventName string, callback func(...interface{})) func()
Emit(eventName string, data ...interface{})
Off(eventName string)
OffAll()
Notify(sender Frontend, name string, data ...interface{})
}