# MessageHandler

public abstract class MessageHandler<T extends MessageContent>

## Constructors

MessageHandler
Link copied to clipboard
public void MessageHandler(Context context)

## Properties

context
Link copied to clipboard
public Context context

## Functions

decodeMessage
Link copied to clipboard
public abstract void decodeMessage(Message message, T content)
解码 MessageContent 到 Message 中。
encodeMessage
Link copied to clipboard
public abstract void encodeMessage(Message message)
对 Message 编码。
getContext
Link copied to clipboard
public Context getContext()
setHandleMessageListener
Link copied to clipboard
@Deprecated()
public void setHandleMessageListener(IHandleMessageListener mHandleMessageListener)
此接口已经废弃不会参与实际代码逻辑