MsgHandlerBase class

消息处理器

Implemented types
Implementers

Constructors

MsgHandlerBase({dynamic owner, List<int> msgIds, MsgProcHandler onProcessMsg})

Properties

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

Methods

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

Operators

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