类 LCLiveQueryEventHandler
- java.lang.Object
-
- cn.leancloud.livequery.LCLiveQueryEventHandler
-
public abstract class LCLiveQueryEventHandler extends java.lang.Object
-
-
构造器概要
构造器 构造器 说明 LCLiveQueryEventHandler()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddone(LCLiveQuery.EventType eventType, LCObject LCObject, java.util.List<java.lang.String> updateKeyList)voidonObjectCreated(LCObject LCObject)This method will be called when an associated AVObject createdvoidonObjectDeleted(java.lang.String objectId)This method will be called when a related AVObject is deletedvoidonObjectEnter(LCObject LCObject, java.util.List<java.lang.String> updateKeyList)This method will be called when an AVObject matched the associated AVQuery after updatevoidonObjectLeave(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 queryvoidonObjectUpdated(LCObject LCObject, java.util.List<java.lang.String> updateKeyList)This method will be called when an associated AVObject updatedvoidonUserLogin(LCUser user)This method will be called when a related user loginstatic voidsetMainThreadChecker(cn.leancloud.internal.ThreadModel.MainThreadChecker checker, cn.leancloud.internal.ThreadModel.ThreadShuttle shuttle)
-
-
-
方法详细资料
-
setMainThreadChecker
public static void setMainThreadChecker(cn.leancloud.internal.ThreadModel.MainThreadChecker checker, cn.leancloud.internal.ThreadModel.ThreadShuttle shuttle)
-
done
public void done(LCLiveQuery.EventType eventType, LCObject LCObject, java.util.List<java.lang.String> updateKeyList)
-
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.
-
-