MsgHandlerEvent class

消息处理器 (回调方式)

Inheritance

Constructors

MsgHandlerEvent({dynamic owner, List<int> msgIds})

Properties

hashCode → int
The hash code for this object.
read-only, inherited
msgIds → List<int>
已经注册过的消息ID
read-only, inherited
onProcessMsg MsgProcHandler
消息处理回调
final, inherited
owner → dynamic
所有者
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

processMsg(MsgPack msg) → void
处理消息
override
addMsgId(int msgId) → void
添加消息ID
inherited
addMsgIds(List<int> msgId) → void
添加消息id列表
inherited
clearMsgId() → void
清空消息id
inherited
dispose() → void
释放资源
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeMsgId(int msgId) → void
移除一个消息id
inherited
sendMsg(MsgPack msg) → void
异步发送消息
inherited
sendMsgSync(MsgPack msg) → void
同步发送消息
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited