BlockedMessageInfo

public class BlockedMessageInfo

Information about messages containing sensitive words being blocked

Author

yanke on 2021/7/12

See also

io.rong.imlib.IRongCoreListener.MessageBlockListener

Properties

Link copied to clipboard
public String blockMsgUId
Intercepted Message ID
Link copied to clipboard
public String channelId
Channel ID
Link copied to clipboard
public ConversationType conversationType
Conversation Type
Link copied to clipboard
public final static Creator<BlockedMessageInfo> CREATOR
Link copied to clipboard
public String extra
Additional Information
Link copied to clipboard
public String sourceContent
Source content.
Link copied to clipboard
public int sourceType
Message source trigger type.
Link copied to clipboard
public String targetId
Conversation ID
Link copied to clipboard
public MessageBlockType type
Interception Reason

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public String getBlockMsgUId()
Retrieves the unique ID of the intercepted message.
Link copied to clipboard
public String getChannelId()
Link copied to clipboard
public ConversationType getConversationType()
Retrieves the conversation type of the conversation where the blocked message is located.
Link copied to clipboard
public String getExtra()
Retrieves additional information about the blocked message.
Link copied to clipboard
public String getSourceContent()
Link copied to clipboard
public int getSourceType()
Link copied to clipboard
public String getTargetId()
Retrieves the conversation ID of the session where the intercepted message is located.
Link copied to clipboard
public MessageBlockType getType()
Retrieves the reason why a message was blocked.
Link copied to clipboard
public static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String extra)
public static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra)
public static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra, int sourceType, String sourceContent)
Link copied to clipboard
public void setSourceContent(String sourceContent)
Link copied to clipboard
public void setSourceType(int sourceType)
Link copied to clipboard
public String toString()
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)