Documentation ¶
Index ¶
- Variables
- func CheckEmitCallback(id int32) *callback.Callback
- func CheckOnEvent(name string) *callback.Callback
- func Emit(name string, argument ...interface{}) bool
- func EmitAndCallback(name string, argument []interface{}, fn interface{}) bool
- func EmitTarget(name string, tag target.ITarget, argument ...interface{}) bool
- func EmitTargetAndCallback(name string, tag target.ITarget, argument []interface{}, fn interface{}) bool
- func On(name string, fn interface{}, options ...types.OnOptions)
- func RemoveOn(name string)
- func SetBrowserWindow(bw target.IBrowserWindow)
- func SetProcessMessage(pm target.IWindow)
- type EmitContextCallback
- type WaitChan
Constants ¶
This section is empty.
Variables ¶
View Source
var IPCJS = `` /* 4051-byte string literal not displayed */
Functions ¶
func CheckEmitCallback ¶
CheckEmitCallback
IPC checks if the GO Emit callback function exists returns the function and removes it
func CheckOnEvent ¶
CheckOnEvent
IPC checks if the event listening in GO exists returns the function and removes it
func EmitAndCallback ¶
EmitAndCallback
Event that triggers listening with callback function default to the main process
func EmitTargetAndCallback ¶
func EmitTargetAndCallback(name string, tag target.ITarget, argument []interface{}, fn interface{}) bool
EmitTargetAndCallback
Trigger an event with a callback function for the specified target to listen on
func SetBrowserWindow ¶ added in v2.3.6
func SetBrowserWindow(bw target.IBrowserWindow)
SetBrowserWindow Set BrowserWindow on initialization
func SetProcessMessage ¶
SetProcessMessage
Set the process message object without manually calling it
Types ¶
type EmitContextCallback ¶
EmitContextCallback IPC context Callback Function
type WaitChan ¶ added in v2.4.0
WaitChan
IPC synchronous receiving data channel
func (*WaitChan) NewDelayer ¶ added in v2.4.0
NewDelayer 创建一个计时器
func (*WaitChan) NextMessageId ¶ added in v2.4.0
NextMessageId 返回下一个消息ID
Click to show internal directories.
Click to hide internal directories.