Package io.rong.imlib

## Annotation MessageTag

- All Implemented Interfaces:
    `java.lang.annotation.Annotation`

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

  消息的注解，以声明消息的标识、是否记入未读消息数和是否存储为消息历史记录。

  Author:

    rongcloud

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### 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` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract String` | `value()` | 消息对象名称。 请不要以 "RC:" 开头， "RC:" 为官方保留前缀。
    `abstract int` | `flag()` | 消息的标识。 传入的值可以为 MessageTag.NONE、MessageTag.ISPERSISTED 或 MessageTag.
    `abstract Class<out MessageHandler>` | `messageHandler()` |

    - ### Methods inherited from class java.lang.annotation.Annotation

      `annotationType, equals, hashCode, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### value

           abstract String value()

      消息对象名称。

      请不要以 "RC:" 开头， "RC:" 为官方保留前缀。

      Returns:

        消息对象名称的返回值。

    - #### flag

           abstract int flag()

      消息的标识。

      传入的值可以为 MessageTag.NONE、MessageTag.ISPERSISTED 或 MessageTag.ISCOUNTED。

      Returns:

        标识的返回值。

    - #### messageHandler

           abstract Class<out MessageHandler> messageHandler()