public class LCCloud extends Object
Modifier and Type | Method and Description |
---|---|
static <T> io.reactivex.Observable<T> |
callFunctionInBackground(LCUser asAuthenticatedUser,
String name,
Map<String,Object> params)
Call Cloud Function in Background.
|
static <T> io.reactivex.Observable<T> |
callFunctionInBackground(String name,
Map<String,Object> params)
Call Cloud Function in Background.
|
static <T> io.reactivex.Observable<T> |
callFunctionWithCacheInBackground(LCUser asAuthenticatedUser,
String name,
Map<String,Object> params,
LCQuery.CachePolicy cachePolicy,
long maxCacheAge,
Class<T> clazz)
call cloud funtion with cache policy.
|
static <T> io.reactivex.Observable<T> |
callFunctionWithCacheInBackground(String name,
Map<String,Object> params,
LCQuery.CachePolicy cachePolicy,
long maxCacheAge,
Class<T> clazz)
call cloud funtion with cache policy.
|
static <T> io.reactivex.Observable<T> |
callRPCInBackground(LCUser asAuthenticatedUser,
String name,
Object params)
Call Cloud RPC Function in Background.
|
static <T> io.reactivex.Observable<T> |
callRPCInBackground(String name,
Object params)
Call Cloud RPC Function in Background.
|
static <T> io.reactivex.Observable<T> |
callRPCWithCacheInBackground(LCUser asAuthenticatedUser,
String name,
Map<String,Object> params,
LCQuery.CachePolicy cachePolicy,
long maxCacheAge,
Class<T> clazz)
Call Cloud RPC Function with cache policy in Background.
|
static <T> io.reactivex.Observable<T> |
callRPCWithCacheInBackground(String name,
Map<String,Object> params,
LCQuery.CachePolicy cachePolicy,
long maxCacheAge,
Class<T> clazz)
Call Cloud RPC Function with cache policy in Background.
|
static boolean |
isProductionMode()
Whether current mode is production or not.
|
static void |
setProductionMode(boolean productionMode)
设置调用云代码函数的测试环境或者生产环境,默认为true,也就是生产环境。
|
public static void setProductionMode(boolean productionMode)
productionMode
- flag to production mode.public static boolean isProductionMode()
public static <T> io.reactivex.Observable<T> callFunctionInBackground(String name, Map<String,Object> params)
T
- template type.name
- function name.params
- invoke parameters.public static <T> io.reactivex.Observable<T> callFunctionInBackground(LCUser asAuthenticatedUser, String name, Map<String,Object> params)
T
- template type.asAuthenticatedUser
- explicit user for request authentication.name
- function name.params
- invoke parameters.public static <T> io.reactivex.Observable<T> callFunctionWithCacheInBackground(String name, Map<String,Object> params, LCQuery.CachePolicy cachePolicy, long maxCacheAge, Class<T> clazz)
T
- template type of result.name
- function name.params
- parameters.cachePolicy
- cache policy same as AVQuery.maxCacheAge
- max age in milliseconds.clazz
- clazzpublic static <T> io.reactivex.Observable<T> callFunctionWithCacheInBackground(LCUser asAuthenticatedUser, String name, Map<String,Object> params, LCQuery.CachePolicy cachePolicy, long maxCacheAge, Class<T> clazz)
T
- template type of result.asAuthenticatedUser
- explicit user for request authentication.name
- function name.params
- parameters.cachePolicy
- cache policy same as AVQuery.maxCacheAge
- max age in milliseconds.clazz
- clazzpublic static <T> io.reactivex.Observable<T> callRPCInBackground(String name, Object params)
T
- template type.name
- function name.params
- invoke parameters.public static <T> io.reactivex.Observable<T> callRPCInBackground(LCUser asAuthenticatedUser, String name, Object params)
T
- template type.asAuthenticatedUser
- explicit user for request authentication.name
- function name.params
- invoke parameters.public static <T> io.reactivex.Observable<T> callRPCWithCacheInBackground(String name, Map<String,Object> params, LCQuery.CachePolicy cachePolicy, long maxCacheAge, Class<T> clazz)
name
- function name.params
- invoke parameters.cachePolicy
- cache policy same as AVQuerymaxCacheAge
- max cache age in milliseconds.clazz
- clazztemplate
- type.public static <T> io.reactivex.Observable<T> callRPCWithCacheInBackground(LCUser asAuthenticatedUser, String name, Map<String,Object> params, LCQuery.CachePolicy cachePolicy, long maxCacheAge, Class<T> clazz)
asAuthenticatedUser
- explicit user for request authentication.name
- function name.params
- invoke parameters.cachePolicy
- cache policy same as AVQuerymaxCacheAge
- max cache age in milliseconds.clazz
- clazztemplate
- type.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.