Package com.kii.cloud.storage.callback
Class KiiUserCallBack
- java.lang.Object
-
- com.kii.cloud.storage.callback.KiiUserCallBack
-
public abstract class KiiUserCallBack extends java.lang.ObjectDefines the call back interfaces forKiiUser.
-
-
Constructor Summary
Constructors Constructor Description KiiUserCallBack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonChangeEmailCompleted(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.voidonChangePasswordCompleted(int token, java.lang.Exception exception)Runs on the UI thread after theKiiUser.changePassword(KiiUserCallBack, String, String)has been executed.voidonChangePhoneCompleted(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.voidonDeleteCompleted(int token, java.lang.Exception exception)Runs on the UI thread after theKiiUser.delete(KiiUserCallBack)has been executed.voidonFindCompleted(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.voidonLoginCompleted(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.voidonMemberOfGroupsCompleted(int token, KiiUser user, java.util.List<KiiGroup> groupList, java.lang.Exception exception)Runs on the UI thread after theKiiUser.memberOfGroups()has been executed.voidonOwnerOfGroupsCompleted(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.voidonRefreshCompleted(int token, java.lang.Exception exception)Runs on the UI thread after theKiiUser.refresh(KiiUserCallBack)has been executed.voidonRegisterCompleted(int token, KiiUser user, java.lang.Exception exception)Runs on the UI thread after theKiiUser#register(KiiUserCallBack, String, String)has been executed.voidonRequestResendEmailVerificationCodeCompleted(int token, java.lang.Exception exception)Runs on the UI thread after theKiiUser#requestResendEmailVerificationCode(KiiUserCallBack)has been executed.voidonRequestResendPhoneVerificationCodeCompleted(int token, java.lang.Exception exception)Runs on the UI thread after theKiiUser.requestResendPhoneVerificationCode(KiiUserCallBack)has been executed.voidonResetPasswordCompleted(int token, java.lang.Exception exception)Runs on the UI thread after theKiiUser.resetPassword(KiiUserCallBack, String)has been executed.voidonTaskCancel(int token)Runs on the UI thread after the task has been canceled.voidonTaskStart(int token)Runs on the UI thread before the task is executed.voidonVerifyPhoneCompleted(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.
-
-