Editor.IpcListener

Class: Editor.IpcListener

new Editor.IpcListener ()

Instance Methods

ipcListener.on (message, callback)

  • message string
  • callback function

Register IPC message and respond it with the callback function.

ipcListener.once (message, callback)

  • message string
  • callback function

Register IPC message and respond it once with the callback function.

ipcListener.clear ()

Clear all registered IPC messages in the listener.

条与 "" 相匹配的结果

    没有与 "" 匹配的结果