Documentation ¶
Overview ¶
GO render IPC通道
Index ¶
- Constants
- 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 IBrowserIPCChan
- type IRenderIPCChan
- type WaitChan
Constants ¶
View Source
const ( InternalIPCGoExecuteGoEvent = "GoEmitGo" InternalIPCGoExecuteJSEventReplay = "GoEmitGoReplay" )
Variables ¶
This section is empty.
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 IBrowserIPCChan ¶
type IBrowserIPCChan interface { IPC() channel.IBrowserChannel AddCallback(callback func(channelId int64, argument argument.IList) bool) }
func BrowserChan ¶
func BrowserChan() IBrowserIPCChan
BrowserChan
返回Browser IPC Channel, 这个是在channel创建的
func CreateBrowserIPC ¶
func CreateBrowserIPC() IBrowserIPCChan
CreateBrowserIPC
Main process IPC creation
type IRenderIPCChan ¶
type IRenderIPCChan interface { IPC() channel.IRenderChannel SetRealityChannel(browserId int32, channelId int64) AddCallback(callback func(channelId int64, argumentList argument.IList) bool) BrowserId() int32 ChannelId() int64 }
func CreateRenderIPC ¶
func CreateRenderIPC(browserId int32, channelId int64) IRenderIPCChan
CreateRenderIPC Rendering process IPC creation
func RenderChan ¶
func RenderChan() IRenderIPCChan
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.