# Function: onBroadcast
▸ onBroadcast(this
: void, handler
: BroadcastEventHandler): void
监听广播事件
# 参数:
属性 | 类型 | 描述 |
---|---|---|
this | void | - |
handler | BroadcastEventHandler | 事件触发的回调方法 |
BroadcastEventHandler: MogsEventHandler‹BroadcastEvent›
BroadcastEvent
结构
属性 | 类型 | 描述 |
---|---|---|
type | BroadCast | 事件类型,由具体的事件构造时提供 |
# 返回值:
void