Class KiiUserCallBack


  • public abstract class KiiUserCallBack
    extends java.lang.Object
    Defines the call back interfaces for KiiUser.
    • Constructor Detail

      • KiiUserCallBack

        public KiiUserCallBack()
    • 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.
      • onRegisterCompleted

        public void onRegisterCompleted​(int token,
                                        @Nullable
                                        KiiUser user,
                                        @Nullable
                                        java.lang.Exception exception)
        Runs on the UI thread after the KiiUser#register(KiiUserCallBack, String, String) has been executed.
      • onDeleteCompleted

        public void onDeleteCompleted​(int token,
                                      @Nullable
                                      java.lang.Exception exception)
        Runs on the UI thread after the KiiUser.delete(KiiUserCallBack) has been executed.
      • onRefreshCompleted

        public void onRefreshCompleted​(int token,
                                       @Nullable
                                       java.lang.Exception exception)
        Runs on the UI thread after the KiiUser.refresh(KiiUserCallBack) has been executed.
      • onChangePhoneCompleted

        public void onChangePhoneCompleted​(int token,
                                           @Nullable
                                           java.lang.Exception exception)
        Runs on the UI thread after the KiiUser.changePhone(KiiUserCallBack, String) has been executed.
        After the change succeeded, KiiUser.getCurrentUser() will returns updated logged in user.
        Parameters:
        token - task id of this operation
        exception - null when succeeded.
      • onChangeEmailCompleted

        public void onChangeEmailCompleted​(int token,
                                           @Nullable
                                           java.lang.Exception exception)
        Runs on the UI thread after the KiiUser.changeEmail(KiiUserCallBack, String) has been executed.
        After the change succeeded, KiiUser.getCurrentUser() will returns updated logged in user.
        Parameters:
        token - task id of this operation
        exception - null when succeeded.
      • onRequestResendPhoneVerificationCodeCompleted

        public void onRequestResendPhoneVerificationCodeCompleted​(int token,
                                                                  @Nullable
                                                                  java.lang.Exception exception)
        Runs on the UI thread after the KiiUser.requestResendPhoneVerificationCode(KiiUserCallBack) has been executed.
        Parameters:
        token - task id of this operation
        exception - null when succeeded.
      • onRequestResendEmailVerificationCodeCompleted

        public void onRequestResendEmailVerificationCodeCompleted​(int token,
                                                                  @Nullable
                                                                  java.lang.Exception exception)
        Runs on the UI thread after the KiiUser#requestResendEmailVerificationCode(KiiUserCallBack) has been executed.
        Parameters:
        token - task id of this operation
        exception - 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 the KiiUser.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 the KiiUser.ownerOfGroups(KiiUserCallBack) has been executed.
        Parameters:
        token - task id of this operation.
        user - Instance of KiiUser.ownerOfGroups(KiiUserCallBack) called.
        ownedGroups - owned groups by this user.
        exception - null when succeeded.