类 LCLiveQueryEventHandler


  • public abstract class LCLiveQueryEventHandler
    extends java.lang.Object
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void done​(LCLiveQuery.EventType eventType, LCObject LCObject, java.util.List<java.lang.String> updateKeyList)  
      void onObjectCreated​(LCObject LCObject)
      This method will be called when an associated AVObject created
      void onObjectDeleted​(java.lang.String objectId)
      This method will be called when a related AVObject is deleted
      void onObjectEnter​(LCObject LCObject, java.util.List<java.lang.String> updateKeyList)
      This method will be called when an AVObject matched the associated AVQuery after update
      void onObjectLeave​(LCObject LCObject, java.util.List<java.lang.String> updateKeyList)
      This method will be called when an AVObject is modified and does not conform to the relevant query
      void onObjectUpdated​(LCObject LCObject, java.util.List<java.lang.String> updateKeyList)
      This method will be called when an associated AVObject updated
      void onUserLogin​(LCUser user)
      This method will be called when a related user login
      static void setMainThreadChecker​(cn.leancloud.internal.ThreadModel.MainThreadChecker checker, cn.leancloud.internal.ThreadModel.ThreadShuttle shuttle)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • LCLiveQueryEventHandler

        public LCLiveQueryEventHandler()
    • 方法详细资料

      • setMainThreadChecker

        public static void setMainThreadChecker​(cn.leancloud.internal.ThreadModel.MainThreadChecker checker,
                                                cn.leancloud.internal.ThreadModel.ThreadShuttle shuttle)
      • onObjectCreated

        public void onObjectCreated​(LCObject LCObject)
        This method will be called when an associated AVObject created
        参数:
        LCObject - object instance.
      • onObjectUpdated

        public void onObjectUpdated​(LCObject LCObject,
                                    java.util.List<java.lang.String> updateKeyList)
        This method will be called when an associated AVObject updated
        参数:
        LCObject - object instance.
        updateKeyList - updated key list.
      • onObjectEnter

        public void onObjectEnter​(LCObject LCObject,
                                  java.util.List<java.lang.String> updateKeyList)
        This method will be called when an AVObject matched the associated AVQuery after update
        参数:
        LCObject - object instance.
        updateKeyList - updated key list.
      • onObjectLeave

        public void onObjectLeave​(LCObject LCObject,
                                  java.util.List<java.lang.String> updateKeyList)
        This method will be called when an AVObject is modified and does not conform to the relevant query
        参数:
        LCObject - object instance.
        updateKeyList - updated key list.
      • onObjectDeleted

        public void onObjectDeleted​(java.lang.String objectId)
        This method will be called when a related AVObject is deleted
        参数:
        objectId - object id.
      • onUserLogin

        public void onUserLogin​(LCUser user)
        This method will be called when a related user login
        参数:
        user - user instance.