Package cn.leancloud

Enum Class IMHookType

java.lang.Object
java.lang.Enum<IMHookType>
cn.leancloud.IMHookType
All Implemented Interfaces:
Serializable, Comparable<IMHookType>, java.lang.constant.Constable

public enum IMHookType extends Enum<IMHookType>
  • Enum Constant Details

    • rtmClientSign

      public static final IMHookType rtmClientSign
      客户端登录启用签名认证时,验证 AV.User 的 sessionToken 后,获取登录签名前调用
    • clientOnline

      public static final IMHookType clientOnline
      客户端成功登录
    • clientOffline

      public static final IMHookType clientOffline
      客户端下线
    • messageReceived

      public static final IMHookType messageReceived
      消息达到服务器,群组成员已解析完成之后,发送给收件人之前
    • receiversOffline

      public static final IMHookType receiversOffline
      消息发送完成,存在离线的收件人
    • messageSent

      public static final IMHookType messageSent
      消息发送完成
    • messageUpdate

      public static final IMHookType messageUpdate
      修改消息请求到达云端,云端正式修改消息之前
    • conversationStart

      public static final IMHookType conversationStart
      创建对话,在签名校验(如果开启)之后,实际创建之前
    • conversationStarted

      public static final IMHookType conversationStarted
      创建对话完成
    • conversationAdd

      public static final IMHookType conversationAdd
      向对话添加成员,在签名校验(如果开启)之后,实际加入之前,包括主动加入和被其他用户加入两种情况
    • conversationRemove

      public static final IMHookType conversationRemove
      从对话中踢出成员,在签名校验(如果开启)之后,实际踢出之前,用户自己退出对话不会调用。
    • conversationAdded

      public static final IMHookType conversationAdded
      用户加入对话,在加入成功后调用。
    • conversationRemoved

      public static final IMHookType conversationRemoved
      用户离开对话,在离开成功后调用。
    • conversationUpdate

      public static final IMHookType conversationUpdate
      修改对话属性、设置或取消对话消息提醒,在实际修改之前调用
  • Method Details

    • values

      public static IMHookType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IMHookType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<IMHookType>
    • parse

      public static IMHookType parse(String functionName)