package tv.zy.chat.leancloud;
import cn.leancloud.AVLogger;
import cn.leancloud.core.AVOSCloud;
public class LeanCloudInit {
/**
* leancloud 出事或
*
* @param appId 应用ID
* @param appKey 应用key
* @param region 初始化区域
* @param level 日志级别
*/
private static void init(String appId, String appKey, AVOSCloud.REGION region, AVLogger.Level level) {
AVOSCloud.setLogLevel(level);
AVOSCloud.setRegion(region);
AVOSCloud.initialize(appId, appKey);
}
/**
* leancloud 初始化
*
* @param appId 应用ID
* @param appKey 应用key
*/
public static void init(String appId, String appKey) {
LeanCloudInit.init(appId, appKey, AVOSCloud.REGION.EastChina, AVLogger.Level.DEBUG);
}
}
报错信息
-
创建时间
19年5月16日
-
最后回复
19年5月17日
-
1
回复
-
951
浏览
-
2
用户