pikapika/go/mobile/mobile.go

23 lines
424 B
Go
Raw Normal View History

2021-09-29 23:57:09 +00:00
package mobile
import (
2021-12-10 11:38:17 +00:00
"pikapika/pikapika"
"pikapika/pikapika/config"
2021-09-29 23:57:09 +00:00
)
func InitApplication(application string) {
config.InitApplication(application)
}
func FlatInvoke(method string, params string) (string, error) {
2021-12-10 11:38:17 +00:00
return pikapika.FlatInvoke(method, params)
2021-09-29 23:57:09 +00:00
}
func EventNotify(notify EventNotifyHandler) {
2021-12-10 11:38:17 +00:00
pikapika.EventNotify = notify.OnNotify
2021-09-29 23:57:09 +00:00
}
type EventNotifyHandler interface {
OnNotify(message string)
}