public class LeanCloud extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LeanCloud.REGION |
Constructor and Description |
---|
LeanCloud() |
Modifier and Type | Method and Description |
---|---|
static void |
clearServerURLs() |
static void |
enablePrintAllHeaders4Debug(boolean flag) |
static String |
getApplicationId() |
static String |
getApplicationKey() |
static String |
getHookKey() |
static LCLogger.Level |
getLogLevel() |
static int |
getNetworkTimeout()
Deprecated.
|
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()
Deprecated.
|
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)
Deprecated.
|
static void |
setLogLevel(LCLogger.Level level) |
static void |
setMasterKey(String masterKey)
set master key.
|
static void |
setNetworkTimeout(int seconds)
Deprecated.
|
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.public static void clearServerURLs()
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.