Skip to main content

Module event

Module event 

Source
Expand description

Host-to-plugin push methods (fire-and-forget, no response expected).

与 plugin/* 请求的区别:这些方法由宿主单向推送给插件进程,用于把 host/timer.* / host/*.subscribe 注册的事件送达插件;插件不应答。

Constants§

FOCUS_EVENT
窗口焦点事件(参数:{ event },FocusEvent 序列化形态)。
HOTKEY_EVENT
按键事件(参数:{ event },HotkeyEvent 序列化形态)。
INSTALLATION_EVENT
安装监控事件(参数:{ event },InstallationEvent 序列化形态)。
TIMER_FIRED
定时器到期(参数:{ id },id 为 host/timer.set_* 返回的定时器 ID)。