public class LCLiveQuery extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LCLiveQuery.EventType |
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_LIVE_QUERY_LOGIN |
static String |
LIVEQUERY_PRIFIX |
static String |
SUBSCRIBE_ID |
Modifier and Type | Method and Description |
---|---|
static LCLiveQuery |
initWithQuery(LCQuery query)
initialize AVLiveQuery with AVQuery
|
static void |
processData(ArrayList<String> dataList) |
static void |
setConnectionHandler(LCLiveQueryConnectionHandler connectionHandler)
set connection handler globally.
|
void |
setEventHandler(LCLiveQueryEventHandler eventHandler) |
void |
subscribeInBackground(LCLiveQuerySubscribeCallback callback)
subscribe the query
|
void |
unsubscribeInBackground(LCLiveQuerySubscribeCallback callback)
unsubscribe the query
|
public static final String SUBSCRIBE_ID
public static final String LIVEQUERY_PRIFIX
public static final String ACTION_LIVE_QUERY_LOGIN
public static LCLiveQuery initWithQuery(LCQuery query)
query
- query instance.public void subscribeInBackground(LCLiveQuerySubscribeCallback callback)
callback
- callback function.public static void setConnectionHandler(LCLiveQueryConnectionHandler connectionHandler)
connectionHandler
- connection handler.public void setEventHandler(LCLiveQueryEventHandler eventHandler)
public void unsubscribeInBackground(LCLiveQuerySubscribeCallback callback)
callback
- callback function.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.