toggle menu
Android-IMLibCore-SDK
5.14.0
io.rong.imlib
switch theme
search in API
Android-IMLibCore-SDK
/
io.rong.imlib
/
MessageTag
Message
Tag
io.rong.imlib
@
Target
(
value
=
ElementType.TYPE
)
@
Retention
(
value
=
RetentionPolicy.RUNTIME
)
public
@interface
MessageTag
消息的注解,以声明消息的标识、是否记入未读消息数和是否存储为消息历史记录。
Author
rongcloud
See also
io.
rong.
imlib.
model.
Message
Members
Properties
ISCOUNTED
Link copied to clipboard
io.rong.imlib
public
final
static
int
ISCOUNTED
消息需要被记入未读消息数。此类消息会保存到数据库,并且增加未读数 如文本,图片等消息均为此类
ISPERSISTED
Link copied to clipboard
io.rong.imlib
public
final
static
int
ISPERSISTED
消息需要被存储到消息历史记录。此类消息会保存到数据库,但是不记录未读数 常用于小灰条类型的消息,需要 UI 展示,但不需要增加未读数
NONE
Link copied to clipboard
io.rong.imlib
public
final
static
int
NONE
空值,不表示任何意义。此类消息不会保存到数据库,也不会记录未读数 一般用作命令消息,通知端上做一个动作,如 io.rong.message.
STATUS
Link copied to clipboard
io.rong.imlib
public
final
static
int
STATUS
状态消息, 不存储不计数。此类消息不会保存到数据库,也不会记录未读数 对方在线能收到该消息 对方不在线,服务器会直接丢弃该消息,对方如果之后再上线也不会再收到此消息 一般用于发送输入状态之类的消息
Functions
flag
Link copied to clipboard
io.rong.imlib
public
abstract
int
flag
(
)
消息的标识。 传入的值可以为 MessageTag.NONE、MessageTag.ISPERSISTED 或 MessageTag.
message
Handler
Link copied to clipboard
io.rong.imlib
public
abstract
Class
<
? extends
MessageHandler
>
messageHandler
(
)
value
Link copied to clipboard
io.rong.imlib
public
abstract
String
value
(
)
消息对象名称。 请不要以 "RC:" 开头, "RC:" 为官方保留前缀。
Inherited functions
annotation
Type
Link copied to clipboard
io.rong.imlib
public
abstract
Class
<
? extends
Annotation
>
annotationType
(
)
equals
Link copied to clipboard
io.rong.imlib
public
abstract
boolean
equals
(
Object
p
)
hash
Code
Link copied to clipboard
io.rong.imlib
public
abstract
int
hashCode
(
)
to
String
Link copied to clipboard
io.rong.imlib
public
abstract
String
toString
(
)