Package com.kii.cloud.storage.callback
Class KiiUserCallBack
- java.lang.Object
-
- com.kii.cloud.storage.callback.KiiUserCallBack
-
public abstract class KiiUserCallBack extends java.lang.Object
Defines the call back interfaces forKiiUser
.
-
-
Constructor Summary
Constructors Constructor Description KiiUserCallBack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onChangeEmailCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.changeEmail(KiiUserCallBack, String)
has been executed.
After the change succeeded,KiiUser.getCurrentUser()
will returns updated logged in user.void
onChangePasswordCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.changePassword(KiiUserCallBack, String, String)
has been executed.void
onChangePhoneCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.changePhone(KiiUserCallBack, String)
has been executed.
After the change succeeded,KiiUser.getCurrentUser()
will returns updated logged in user.void
onDeleteCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.delete(KiiUserCallBack)
has been executed.void
onFindCompleted(int token, KiiUser caller, KiiUser found, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.findUserByEmail(String)
,KiiUser.findUserByPhone(String)
,KiiUser.findUserByUserName(String)
has been executed.void
onLoginCompleted(int token, KiiUser user, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.logIn(KiiUserCallBack, String, String)
orKiiUser.loginWithToken(KiiUserCallBack, String)
has been executed.void
onMemberOfGroupsCompleted(int token, KiiUser user, java.util.List<KiiGroup> groupList, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.memberOfGroups()
has been executed.void
onOwnerOfGroupsCompleted(int token, KiiUser user, java.util.List<KiiGroup> ownedGroups, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.ownerOfGroups(KiiUserCallBack)
has been executed.void
onRefreshCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.refresh(KiiUserCallBack)
has been executed.void
onRegisterCompleted(int token, KiiUser user, java.lang.Exception exception)
Runs on the UI thread after theKiiUser#register(KiiUserCallBack, String, String)
has been executed.void
onRequestResendEmailVerificationCodeCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser#requestResendEmailVerificationCode(KiiUserCallBack)
has been executed.void
onRequestResendPhoneVerificationCodeCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.requestResendPhoneVerificationCode(KiiUserCallBack)
has been executed.void
onResetPasswordCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.resetPassword(KiiUserCallBack, String)
has been executed.void
onTaskCancel(int token)
Runs on the UI thread after the task has been canceled.void
onTaskStart(int token)
Runs on the UI thread before the task is executed.void
onVerifyPhoneCompleted(int token, java.lang.Exception exception)
Runs on the UI thread after theKiiUser.verifyPhone(KiiUserCallBack, String)
has been executed.
-
-
-
Method Detail
-
onTaskCancel
public void onTaskCancel(int token)
Runs on the UI thread after the task has been canceled.
-
onTaskStart
public void onTaskStart(int token)
Runs on the UI thread before the task is executed.
-
onLoginCompleted
public void onLoginCompleted(int token, @Nullable KiiUser user, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.logIn(KiiUserCallBack, String, String)
orKiiUser.loginWithToken(KiiUserCallBack, String)
has been executed.
-
onRegisterCompleted
public void onRegisterCompleted(int token, @Nullable KiiUser user, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser#register(KiiUserCallBack, String, String)
has been executed.
-
onChangePasswordCompleted
public void onChangePasswordCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.changePassword(KiiUserCallBack, String, String)
has been executed.
-
onFindCompleted
public void onFindCompleted(int token, @Nullable KiiUser caller, @Nullable KiiUser found, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.findUserByEmail(String)
,KiiUser.findUserByPhone(String)
,KiiUser.findUserByUserName(String)
has been executed.- Parameters:
token
- task idcaller
- KiiUser call this task.found
- KiiUser matched with the email, phone or user name. null If no user matched or Exception occurred.exception
-
-
onDeleteCompleted
public void onDeleteCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.delete(KiiUserCallBack)
has been executed.
-
onRefreshCompleted
public void onRefreshCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.refresh(KiiUserCallBack)
has been executed.
-
onResetPasswordCompleted
public void onResetPasswordCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.resetPassword(KiiUserCallBack, String)
has been executed.
-
onVerifyPhoneCompleted
public void onVerifyPhoneCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.verifyPhone(KiiUserCallBack, String)
has been executed.
-
onChangePhoneCompleted
public void onChangePhoneCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.changePhone(KiiUserCallBack, String)
has been executed.
After the change succeeded,KiiUser.getCurrentUser()
will returns updated logged in user.- Parameters:
token
- task id of this operationexception
- null when succeeded.
-
onChangeEmailCompleted
public void onChangeEmailCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.changeEmail(KiiUserCallBack, String)
has been executed.
After the change succeeded,KiiUser.getCurrentUser()
will returns updated logged in user.- Parameters:
token
- task id of this operationexception
- null when succeeded.
-
onRequestResendPhoneVerificationCodeCompleted
public void onRequestResendPhoneVerificationCodeCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.requestResendPhoneVerificationCode(KiiUserCallBack)
has been executed.- Parameters:
token
- task id of this operationexception
- null when succeeded.
-
onRequestResendEmailVerificationCodeCompleted
public void onRequestResendEmailVerificationCodeCompleted(int token, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser#requestResendEmailVerificationCode(KiiUserCallBack)
has been executed.- Parameters:
token
- task id of this operationexception
- null when succeeded.
-
onMemberOfGroupsCompleted
public void onMemberOfGroupsCompleted(int token, @Nullable KiiUser user, @Nullable java.util.List<KiiGroup> groupList, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.memberOfGroups()
has been executed.- Parameters:
token
- task id of this operation.user
- KiiUser which is belongs to returned groupList.groupList
- List of groups which the user is a member of.exception
- null when succeeded.
-
onOwnerOfGroupsCompleted
public void onOwnerOfGroupsCompleted(int token, @Nullable KiiUser user, @Nullable java.util.List<KiiGroup> ownedGroups, @Nullable java.lang.Exception exception)
Runs on the UI thread after theKiiUser.ownerOfGroups(KiiUserCallBack)
has been executed.- Parameters:
token
- task id of this operation.user
- Instance ofKiiUser.ownerOfGroups(KiiUserCallBack)
called.ownedGroups
- owned groups by this user.exception
- null when succeeded.
-
-