public abstract class LCLiveQueryEventHandler extends Object
Constructor and Description |
---|
LCLiveQueryEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
done(LCLiveQuery.EventType eventType,
LCObject LCObject,
List<String> updateKeyList) |
void |
onObjectCreated(LCObject LCObject)
This method will be called when an associated AVObject created
|
void |
onObjectDeleted(String objectId)
This method will be called when a related AVObject is deleted
|
void |
onObjectEnter(LCObject LCObject,
List<String> updateKeyList)
This method will be called when an AVObject matched the associated AVQuery after update
|
void |
onObjectLeave(LCObject LCObject,
List<String> updateKeyList)
This method will be called when an AVObject is modified and does not conform to the relevant query
|
void |
onObjectUpdated(LCObject LCObject,
List<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) |
public static void setMainThreadChecker(cn.leancloud.internal.ThreadModel.MainThreadChecker checker, cn.leancloud.internal.ThreadModel.ThreadShuttle shuttle)
public void done(LCLiveQuery.EventType eventType, LCObject LCObject, List<String> updateKeyList)
public void onObjectCreated(LCObject LCObject)
LCObject
- object instance.public void onObjectUpdated(LCObject LCObject, List<String> updateKeyList)
LCObject
- object instance.updateKeyList
- updated key list.public void onObjectEnter(LCObject LCObject, List<String> updateKeyList)
LCObject
- object instance.updateKeyList
- updated key list.public void onObjectLeave(LCObject LCObject, List<String> updateKeyList)
LCObject
- object instance.updateKeyList
- updated key list.public void onObjectDeleted(String objectId)
objectId
- object id.public void onUserLogin(LCUser user)
user
- user instance.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.