# Function: onMatchCanceled
▸ onMatchCanceled(this
: void, handler
: MatchCanceledEventHandler): void
监听匹配取消
# 参数:
属性 | 类型 | 描述 |
---|---|---|
this | void | - |
handler | MatchCanceledEventHandler | 事件触发的回调方法 |
MatchCanceledEventHandler: MogsEventHandler‹MatchCanceledEvent›
MatchCanceledEvent
结构
属性 | 类型 | 描述 |
---|---|---|
canceller | ReadonlyClone‹Player› | 取消匹配的玩家信息 |
type | MatchCanceled | 事件类型,由具体的事件构造时提供 |
# 返回值:
void