cn.beecloud
类 BeeCloud

java.lang.Object
  继承者 cn.beecloud.BeeCloud

public class BeeCloud
extends Object


字段摘要
static double kBeeCloudVersionNumber
           
static String kBeeCloudVersionString
          BeeCloud SDK release version.
 
构造方法摘要
BeeCloud()
           
 
方法摘要
static void clearAllCache()
          清除所有本地缓存
static void registerApp(String appID, String appSecret)
          设置appID和appSecret,在程序开始时运行一遍即可
static void setMasterKey(String masterKey)
          设置masterkey, 后续ACL需求预留
static void setNeedCache(boolean needLocalCache)
          设置是否需要本地缓存云端数据及元数据, 默认为true
static void setNetworkTimeout(int timeout)
          设置网络超时时间, 单位ms, 默认5000
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

kBeeCloudVersionString

public static final String kBeeCloudVersionString
BeeCloud SDK release version.

另请参见:
常量字段值

kBeeCloudVersionNumber

public static final double kBeeCloudVersionNumber
另请参见:
常量字段值
构造方法详细信息

BeeCloud

public BeeCloud()
方法详细信息

registerApp

public static void registerApp(String appID,
                               String appSecret)
设置appID和appSecret,在程序开始时运行一遍即可

参数:
appID - 用户在比可网络中的应用标识符
appSecret - 应用密码

setMasterKey

public static void setMasterKey(String masterKey)
设置masterkey, 后续ACL需求预留

参数:
masterKey - masterkey

setNetworkTimeout

public static void setNetworkTimeout(int timeout)
设置网络超时时间, 单位ms, 默认5000

参数:
timeout - 访问比可网络的超时时间

setNeedCache

public static void setNeedCache(boolean needLocalCache)
设置是否需要本地缓存云端数据及元数据, 默认为true

参数:
needLocalCache - 是否本地缓存

clearAllCache

public static void clearAllCache()
清除所有本地缓存



Copyright © 2015. All rights reserved.