类 LeanCloud


  • public class LeanCloud
    extends java.lang.Object
    we should set following variables: 0. app region(one of EastChina, NorthChina, NorthAmerica) 1. appid/appKey 2. log level 3. log adapter
    • 构造器详细资料

      • LeanCloud

        public LeanCloud()
    • 方法详细资料

      • enablePrintAllHeaders4Debug

        public static void enablePrintAllHeaders4Debug​(boolean flag)
      • setLogLevel

        public static void setLogLevel​(LCLogger.Level level)
      • isDebugEnable

        public static boolean isDebugEnable()
      • setCircularReferenceDetectEnable

        public static void setCircularReferenceDetectEnable​(boolean enable)
      • isEnableCircularReferenceDetect

        public static boolean isEnableCircularReferenceDetect()
      • initialize

        public static void initialize​(java.lang.String appId,
                                      java.lang.String appKey)
      • initialize

        public static void initialize​(java.lang.String appId,
                                      java.lang.String appKey,
                                      java.lang.String serverUrl)
      • getServerDateInBackground

        public static io.reactivex.Observable<LCDate> getServerDateInBackground()
        get current datetime from server.
        返回:
        observable instance.
      • setMasterKey

        public static void setMasterKey​(java.lang.String masterKey)
        set master key.
        参数:
        masterKey - master key.
      • setServer

        public static void setServer​(LeanService service,
                                     java.lang.String host)
        set server info.
        参数:
        service - service type.
        host - host string.
      • clearServerURLs

        public static void clearServerURLs()
      • setServerURLs

        protected static void setServerURLs​(java.lang.String host)
      • setLastModifyEnabled

        @Deprecated
        public static void setLastModifyEnabled​(boolean val)
        已过时。
      • isLastModifyEnabled

        @Deprecated
        public static boolean isLastModifyEnabled()
        已过时。
      • setNetworkTimeout

        @Deprecated
        public static void setNetworkTimeout​(int seconds)
        已过时。
      • getNetworkTimeout

        @Deprecated
        public static int getNetworkTimeout()
        已过时。
      • setAutoMergeOperationDataWhenSave

        public static void setAutoMergeOperationDataWhenSave​(boolean flag)
        Set default behavior for object save operation.
        参数:
        flag - flag to indicate whether enable auto merge operation data or not, default is false
      • getApplicationId

        public static java.lang.String getApplicationId()
      • getSimplifiedAppId

        public static java.lang.String getSimplifiedAppId()
      • getApplicationKey

        public static java.lang.String getApplicationKey()
      • getHookKey

        public static java.lang.String getHookKey()
      • setHookKey

        public static void setHookKey​(java.lang.String key)