Package io.rong.imlib
Annotation MessageTag
-
- All Implemented Interfaces:
-
java.lang.annotation.Annotation
@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.
rongcloud
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
NONE
public final static int
ISPERSISTED
public final static int
ISCOUNTED
public final static int
STATUS
-
Method Summary
Modifier and Type Method Description abstract String
value()
The name of the message object. abstract int
flag()
The identifier of the message. abstract Class<out MessageHandler>
messageHandler()
-
-
Method Detail
-
value
abstract String value()
The name of the message object.
Do not start with RC: as it is a reserved prefix for official use.
- Returns:
The return value of the message object name.
-
flag
abstract int flag()
The identifier of the message.
The value passed in can be MessageTag.NONE, MessageTag.ISPERSISTED, or MessageTag.ISCOUNTED.
- Returns:
The return value of the identifier.
-
messageHandler
abstract Class<out MessageHandler> messageHandler()
-
-
-
-