MessageTag

@Target(value = ElementType.TYPE)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface MessageTag

Annotations for messages, declaring the message identifier, whether it counts as unread, and whether it is stored as historical message.

Author

rongcloud

See also

io.rong.imlib.model.Message

Properties

Link copied to clipboard
public final static int ISCOUNTED
The message will be counted as an unread message.
Link copied to clipboard
public final static int ISPERSISTED
Messages need to be stored in the message history.
Link copied to clipboard
public final static int NONE
Null value, indicating no meaning.
Link copied to clipboard
public final static int STATUS
Status message, not stored or counted.

Functions

Link copied to clipboard
public abstract int flag()
The identifier of the message.
Link copied to clipboard
public abstract Class<? extends MessageHandler> messageHandler()
Link copied to clipboard
public abstract String value()
The name of the message object.

Inherited functions

Link copied to clipboard
public abstract Class<? extends Annotation> annotationType()
Link copied to clipboard
public abstract boolean equals(Object p)
Link copied to clipboard
public abstract int hashCode()
Link copied to clipboard
public abstract String toString()