public class LeanCloud extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
LeanCloud.REGION |
构造器和说明 |
---|
LeanCloud() |
限定符和类型 | 方法和说明 |
---|---|
static void |
enablePrintAllHeaders4Debug(boolean flag) |
static String |
getApplicationId() |
static String |
getApplicationKey() |
static String |
getHookKey() |
static LCLogger.Level |
getLogLevel() |
static int |
getNetworkTimeout()
已过时。
|
static LeanCloud.REGION |
getRegion() |
static io.reactivex.Observable<LCDate> |
getServerDateInBackground()
get current datetime from server.
|
static String |
getSimplifiedAppId() |
static void |
initialize(String appId,
String appKey) |
static void |
initialize(String appId,
String appKey,
String serverUrl) |
static boolean |
isDebugEnable() |
static boolean |
isEnableCircularReferenceDetect() |
static boolean |
isLastModifyEnabled()
已过时。
|
static void |
setAutoMergeOperationDataWhenSave(boolean flag)
Set default behavior for object save operation.
|
static void |
setCircularReferenceDetectEnable(boolean enable) |
static void |
setHookKey(String key) |
static void |
setLastModifyEnabled(boolean val)
已过时。
|
static void |
setLogLevel(LCLogger.Level level) |
static void |
setMasterKey(String masterKey)
set master key.
|
static void |
setNetworkTimeout(int seconds)
已过时。
|
static void |
setRegion(LeanCloud.REGION region) |
static void |
setServer(LeanService service,
String host)
set server info.
|
protected static void |
setServerURLs(String host) |
public static void setRegion(LeanCloud.REGION region)
public static LeanCloud.REGION getRegion()
public static void enablePrintAllHeaders4Debug(boolean flag)
public static void setLogLevel(LCLogger.Level level)
public static LCLogger.Level getLogLevel()
public static boolean isDebugEnable()
public static void setCircularReferenceDetectEnable(boolean enable)
public static boolean isEnableCircularReferenceDetect()
public static io.reactivex.Observable<LCDate> getServerDateInBackground()
public static void setMasterKey(String masterKey)
masterKey
- master key.public static void setServer(LeanService service, String host)
service
- service type.host
- host string.protected static void setServerURLs(String host)
@Deprecated public static void setLastModifyEnabled(boolean val)
@Deprecated public static boolean isLastModifyEnabled()
@Deprecated public static void setNetworkTimeout(int seconds)
@Deprecated public static int getNetworkTimeout()
public static void setAutoMergeOperationDataWhenSave(boolean flag)
flag
- flag to indicate whether enable auto merge operation data or not, default is falsepublic static String getApplicationId()
public static String getSimplifiedAppId()
public static String getApplicationKey()
public static String getHookKey()
public static void setHookKey(String key)
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.