# MessageInterceptor

public interface MessageInterceptor

消息拦截器

## Functions

interceptOnInsertIncomingMessage
Link copied to clipboard
public abstract boolean interceptOnInsertIncomingMessage(ConversationType type, String targetId, String senderId, ReceivedStatus receivedStatus, MessageContent content, long sentTime)
准备插入Incoming消息的拦截回调。
interceptOnInsertOutgoingMessage
Link copied to clipboard
public abstract boolean interceptOnInsertOutgoingMessage(ConversationType type, String targetId, SentStatus sentStatus, MessageContent content, long sentTime)
准备插入Outgoing消息的拦截回调。
public boolean interceptOnInsertOutgoingMessage(ConversationType type, String targetId, SentStatus sentStatus, MessageContent content, long time, ResultCallback<Message> callback)
准备插入发送消息的拦截回调。
interceptOnSendMessage
Link copied to clipboard
public abstract boolean interceptOnSendMessage(Message message)
准备发送消息的拦截回调。
interceptOnSentMessage
Link copied to clipboard
public abstract boolean interceptOnSentMessage(Message message)
发送消息成功后的拦截回调。
interceptReceivedMessage
Link copied to clipboard
public abstract boolean interceptReceivedMessage(Message message, int left, boolean hasPackage, boolean offline)
接收实时或者离线消息拦回调。 注意: 1.