| Package | Description |
|---|---|
| com.avos.avoscloud | |
| com.avos.avoscloud.callback | |
| com.avos.avoscloud.internal | |
| com.avos.avoscloud.internal.impl |
| Modifier and Type | Method and Description |
|---|---|
static AVException |
AVErrorUtils.createException(int code,
String content) |
static AVException |
AVErrorUtils.createException(String content) |
static AVException |
AVErrorUtils.createException(Throwable t,
String content) |
static AVException[] |
AVErrorUtils.createExceptions(String content) |
AVException |
S3Uploader.doWork() |
AVException |
Uploader.doWork() |
static AVException |
AVErrorUtils.fileDownloadInConsistentFailureException() |
static AVException |
AVErrorUtils.invalidObjectIdException() |
static AVException |
AVErrorUtils.invalidQueryException() |
static AVException |
AVExceptionHolder.remove() |
static AVException |
AVErrorUtils.sessionMissingException() |
| Modifier and Type | Method and Description |
|---|---|
static void |
AVExceptionHolder.add(AVException e) |
static void |
AVUtils.callCallback(AVCallback callback,
Object t,
AVException parseException) |
abstract void |
CloudQueryCallback.done(AVCloudQueryResult result,
AVException avException) |
abstract void |
DeleteCallback.done(AVException e)
Override this function with the code you want to run after the delete is complete.
|
abstract void |
UpdatePasswordCallback.done(AVException e)
请用您需要在修改密码完成以后的逻辑重载本方法
|
abstract void |
RequestPasswordResetCallback.done(AVException e)
Override this function with the code you want to run after the request is complete.
|
abstract void |
SendCallback.done(AVException e)
Override this function with the code you want to run after the send is complete.
|
abstract void |
SignUpCallback.done(AVException e)
Override this function with the code you want to run after the signUp is complete.
|
abstract void |
SaveCallback.done(AVException e)
Override this function with the code you want to run after the save is complete.
|
abstract void |
RequestEmailVerifyCallback.done(AVException e)
Override this function with the code you want to run after the request is complete.
|
abstract void |
AVMobilePhoneVerifyCallback.done(AVException e) |
abstract void |
RequestMobileCodeCallback.done(AVException e) |
abstract void |
StatusCallback.done(AVStatus statusObject,
AVException parseException)
Override this function with the code you want to run after the fetch is complete.
|
abstract void |
GetDataCallback.done(byte[] data,
AVException e) |
abstract void |
CountCallback.done(int count,
AVException e)
Override this function with the code you want to run after the count is complete.
|
abstract void |
StatusListCallback.done(List<AVStatus> statusObjects,
AVException parseException)
Override this function with the code you want to run after the fetch is complete.
|
abstract void |
FindCallback.done(List<T> parseObjects,
AVException parseException)
Override this function with the code you want to run after the fetch is complete.
|
abstract void |
FollowersAndFolloweesCallback.done(Map<String,T> parseObjects,
AVException parseException)
Override this function with the code you want to run after the fetch is complete.
|
abstract void |
LogInCallback.done(T user,
AVException e)
Override this function with the code you want to run after the save is complete.
|
abstract void |
RefreshCallback.done(T object,
AVException e)
Override this function with the code you want to run after the save is complete.
|
abstract void |
GetCallback.done(T object,
AVException e)
Override this function with the code you want to run after the fetch is complete.
|
abstract void |
FollowCallback.done(T object,
AVException e)
Override this function with the code you want to run after the fetch is complete.
|
abstract void |
FunctionCallback.done(T object,
AVException e)
Override this function with the code you want to run after the cloud function is complete.
|
abstract void |
GetFileCallback.done(T object,
AVException e)
Override this function with the code you want to run after the fetch is complete.
|
void |
AVCallback.internalDone(AVException parseException) |
void |
AVCallback.internalDone(T t,
AVException parseException) |
protected void |
CloudQueryCallback.internalDone0(AVCloudQueryResult returnValue,
AVException e) |
protected void |
StatusCallback.internalDone0(AVStatus returnValue,
AVException e) |
protected void |
GetDataCallback.internalDone0(byte[] returnValue,
AVException e) |
protected void |
ProgressCallback.internalDone0(Integer returnValue,
AVException e)
Override this function with your desired callback.
|
protected void |
CountCallback.internalDone0(Integer returnValue,
AVException e) |
protected void |
StatusListCallback.internalDone0(List<AVStatus> returnValue,
AVException e) |
protected void |
FindCallback.internalDone0(List<T> returnValue,
AVException e) |
protected void |
FollowersAndFolloweesCallback.internalDone0(Map<String,T> returnValue,
AVException e) |
protected void |
LogInCallback.internalDone0(T returnValue,
AVException e) |
protected void |
RefreshCallback.internalDone0(T returnValue,
AVException e) |
protected abstract void |
AVCallback.internalDone0(T t,
AVException parseException) |
protected void |
GetCallback.internalDone0(T returnValue,
AVException e) |
protected void |
FollowCallback.internalDone0(T returnValue,
AVException e) |
protected void |
FunctionCallback.internalDone0(T returnValue,
AVException e) |
protected void |
GetFileCallback.internalDone0(T returnValue,
AVException e) |
protected void |
DeleteCallback.internalDone0(Void returnValue,
AVException e) |
protected void |
UpdatePasswordCallback.internalDone0(Void t,
AVException parseException) |
protected void |
RequestPasswordResetCallback.internalDone0(Void t,
AVException parseException) |
protected void |
SendCallback.internalDone0(Void returnValue,
AVException e) |
protected void |
SignUpCallback.internalDone0(Void t,
AVException parseException) |
protected void |
SaveCallback.internalDone0(Void returnValue,
AVException e) |
protected void |
RequestEmailVerifyCallback.internalDone0(Void t,
AVException parseException) |
protected void |
AVMobilePhoneVerifyCallback.internalDone0(Void t,
AVException parseException)
AVMobilePhoneVerifyCallback 用来验证用户的手机号码
|
protected void |
RequestMobileCodeCallback.internalDone0(Void t,
AVException parseException) |
void |
AVOperation.invokeCallback(AVException exception) |
void |
GenericObjectCallback.onSuccess(String content,
AVException e) |
| Modifier and Type | Method and Description |
|---|---|
static AVUser |
AVUser.becomeWithSessionToken(String sessionToken)
Logs in a user with a session token.
|
static <T extends AVUser> |
AVUser.becomeWithSessionToken(String sessionToken,
Class<T> clazz)
Logs in a user with a session token.
|
static <T> T |
AVCloud.callFunction(String name,
Map<String,?> params)
Calls a cloud function.
|
int |
AVQuery.count()
Counts the number of objects that match this query.
|
static <T extends AVObject> |
AVObject.createWithoutData(Class<T> clazz,
String objectId)
Creates a reference to an existing AVObject subclass instance for use in creating associations
between AVObjects.
|
void |
AVObject.delete()
Deletes this object on the server.
|
void |
AVFile.delete() |
void |
AVStatus.delete() |
void |
AVObject.delete(AVDeleteOption option)
Deletes this object on the server.
|
void |
AVQuery.deleteAll()
Delete all objects that are retrieved by this query.
|
static void |
AVObject.deleteAll(Collection<? extends AVObject> objects)
Delete AVObject in batch.The objects class name must be the same.
|
static void |
AVStatus.deleteStatusWithID(String statusId) |
protected com.avos.avoscloud.okhttp.Response |
HttpClientUploader.executeWithRetry(com.avos.avoscloud.okhttp.Request request,
int retry) |
AVObject |
AVObject.fetch() |
AVObject |
AVObject.fetch(String includeKeys) |
static List<AVObject> |
AVObject.fetchAll(List<AVObject> objects)
Fetches all the objects in the provided list.
|
static List<AVObject> |
AVObject.fetchAllIfNeeded(List<AVObject> objects)
Fetches all the objects that don't have data in the provided list.
|
AVObject |
AVObject.fetchIfNeeded() |
AVObject |
AVObject.fetchIfNeeded(String includeKeys) |
List<T> |
AVQuery.find()
Retrieves a list of AVObjects that satisfy this query.
|
AVUser |
AVUser.follow(String userObjectId) |
AVUser |
AVUser.follow(String userObjectId,
Map<String,Object> attributes) |
<T extends AVUser> |
AVUser.followeeQuery(Class<T> clazz)
创建followee查询。 创建followee查询后,您可以使用whereEqualTo("followee", userFollowee)查询特定的followee。
您也可以使用skip和limit支持分页操作。
|
<T extends AVUser> |
AVUser.followerQuery(Class<T> clazz)
创建follower查询。创建follower查询后,您可以使用whereEqualTo("follower", userFollower)查询特定的follower。
您也可以使用skip和limit支持分页操作。
|
AVFriendship |
AVFriendshipQuery.get() |
T |
AVQuery.get(String theObjectId)
Constructs a AVObject whose id is already known by fetching data from the server.
|
byte[] |
AVFile.getData()
Deprecated.
|
T |
AVQuery.getFirst()
Retrieves at most one AVObject that satisfies this query.
|
static AVStatus |
AVStatus.getStatusWithId(String statusId) |
static AVUser |
AVAnonymousUtils.logIn()
Creates an anonymous user.
|
static AVUser |
AVUser.logIn(String username,
String password) |
static <T extends AVUser> |
AVUser.logIn(String username,
String password,
Class<T> clazz)
Logs in a user with a username and password.
|
static AVUser |
AVUser.loginByMobilePhoneNumber(String phone,
String password) |
static <T extends AVUser> |
AVUser.loginByMobilePhoneNumber(String phone,
String password,
Class<T> clazz) |
static AVUser |
AVUser.loginBySMSCode(String phone,
String smsCode)
通过短信验证码和手机号码来登录用户
请不要在UI线程内调用本方法
|
static <T extends AVUser> |
AVUser.loginBySMSCode(String phone,
String smsCode,
Class<T> clazz)
通过短信验证码和手机号码来登录用户
请不要在UI线程内调用本方法
|
static AVFile |
AVFile.parseFileWithObjectId(String objectId)
Deprecated.
Please use #
AVFile.withObjectId(String) |
void |
AVObject.refresh()
Refreshes this object with the data from the server.
|
void |
AVStatus.refresh()
Deprecated.
|
void |
AVObject.refresh(String includeKeys)
Refreshes this object with the data from the server.
|
void |
AVStatus.refresh(String includeKeys)
Deprecated.
|
static void |
AVUser.requestLoginSmsCode(String mobilePhoneNumber)
请求登录验证码
请在异步任务中调用本方法,或者请使用requestLoginSmsCodeInBackground
|
static void |
AVUser.requestMobilePhoneVerify(String mobilePhoneNumber)
调用这个方法来请求用户的手机号码验证
在发送这条请求前,请保证您已经成功保存用户的手机号码,并且在控制中心打开了“验证注册用户手机号码”选项
本方法请在异步方法中调用
|
static void |
AVUser.requestPasswordResetBySmsCode(String mobilePhoneNumber)
申请通过短信重置用户密码
请确保是在异步程序中调用此方法,否则请调用 requestPasswordResetBySmsCodeInBackground(String
mobilePhoneNumber,RequestMobileCodeCallback callback)方法
|
static void |
AVUser.resetPasswordBySmsCode(String smsCode,
String newPassword)
通过短信验证码更新用户密码
请确保是在异步方法中调用本方法否则请调用resetPasswordBySmsCodeInBackground(String smsCode, String newPassword,
UpdatePasswordCallback callback) 方法
|
static <T> T |
AVCloud.rpcFunction(String name,
Object params)
Calls a cloud function as rpc call in the background.
|
void |
AVObject.save()
Saves this object to the server.
|
void |
AVFile.save()
Saves the file to the AVOSCloud cloud synchronously.
|
void |
AVStatus.save()
Deprecated.
|
void |
AVObject.save(AVSaveOption option)
Saves this object to the server.
|
static void |
AVObject.saveAll(List<? extends AVObject> objects)
Saves each object in the provided list.
|
static void |
AVObject.saveFileBeforeSave(List<AVFile> files,
boolean sync,
SaveCallback callback) |
void |
AVStatus.send() |
static void |
AVStatus.sendPrivateStatus(AVStatus status,
String receiverObjectId)
向用户发私信
|
void |
AVUser.signUp()
Signs up a new user.
|
static AVUser |
AVUser.signUpOrLoginByMobilePhone(String mobilePhoneNumber,
String smsCode)
直接通过手机号码和验证码来创建或者登录用户。 如果手机号码已经存在则为登录,否则创建新用户
请不要在UI线程中间调用此方法
|
static <T extends AVUser> |
AVUser.signUpOrLoginByMobilePhone(String mobilePhoneNumber,
String smsCode,
Class<T> clazz)
直接通过手机号码和验证码来创建或者登录用户。 如果手机号码已经存在则为登录,否则创建新用户
请不要在UI线程中间调用此方法
|
static AVStatusQuery |
AVStatus.statusQuery(AVUser owner)
返回一个AVStatusQuery对象,用来查询用户发件箱内容
|
void |
AVUser.unfollow(String userObjectId) |
protected void |
PaasClient.updateHeaders(com.avos.avoscloud.okhttp.Request.Builder builder,
Map<String,String> header,
boolean needRequestStatistic) |
void |
AVUser.updatePassword(String oldPassword,
String newPassword)
同步方法调用修改用户当前的密码
您需要保证用户有效的登录状态
|
static void |
AVUser.verifyMobilePhone(String verifyCode)
验证手机收到的验证码
请在异步方法中调用此方法,或者您可以调用verifyMobilePhoneInBackground方法
|
static AVFile |
AVFile.withObjectId(String objectId)
Retrieve a AVFile object by object id from AVOSCloud.If the file is not found,it will throw
java.io.FileNotFoundException.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
AVFriendshipCallback.done(AVFriendship friendship,
AVException e) |
abstract void |
AVServerDateCallback.done(Date serverDate,
AVException e) |
protected void |
AVFriendshipCallback.internalDone0(AVFriendship returnValue,
AVException e) |
protected void |
AVServerDateCallback.internalDone0(Date date,
AVException parseException) |
| Modifier and Type | Method and Description |
|---|---|
AVException |
InternalFileDownloader.doWork(String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
InternalCallback.internalDoneInCurrentThread(AVCallback parent,
Object t,
AVException e) |
void |
InternalCallback.internalDoneInMainThread(AVCallback parent,
Object t,
AVException e) |
| Modifier and Type | Method and Description |
|---|---|
static Date |
InternalDate.getServerDate()
获取服务器端当前时间
|
static void |
InternalSMS.requestSMSCode(String phone)
请求发送短信验证码
请在异步任务中调用本方法,或者调用requestSMSCodeInBackground(String phone)方法
短信示范为: 您正在{应用名称}中进行短信验证,您的验证码是:{Code},请输入完整验证,有效期为:10分钟
|
static void |
InternalSMS.requestSMSCode(String phone,
String templateName,
Map<String,Object> env)
通过短信模板来发送短信验证码
请在异步任务中调用本方法,或者调用 public static void requestSMSCodeInBackground(String phone, String template,
Map env, RequestMobileCodeCallback callback)
|
static void |
InternalSMS.requestSMSCode(String phone,
String name,
String op,
int ttl)
请求发送短信验证码
请在异步任务中调用本方法,或者调用requestSMSCodeInBackgroud(String phone, String name, String op, int ttl,
RequestMobileCodeCallback callback)方法
短信示范为: 您正在{name}中进行{op},您的验证码是:{Code},请输入完整验证,有效期为:{ttl}
|
static void |
InternalSMS.requestVoiceCode(String phoneNumber)
请求发送语音验证码,验证码会以电话形式打给目标手机
|
static void |
InternalSMS.requestVoiceCode(String phoneNumber,
String idd)
请求发送语音验证码,验证码会以电话形式打给目标手机
|
static void |
InternalSMS.verifyCode(String code,
String mobilePhoneNumber)
验证验证码
|
static void |
InternalSMS.verifySMSCode(String code,
String mobilePhoneNumber)
验证验证码
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultInternalCallback.internalDoneInCurrentThread(AVCallback parent,
Object t,
AVException e) |
void |
DefaultInternalCallback.internalDoneInMainThread(AVCallback parent,
Object t,
AVException e) |
Copyright © 2017. All rights reserved.