Class KiiGroupCallBack


  • public abstract class KiiGroupCallBack
    extends java.lang.Object
    Defines the call back interfaces for KiiObject.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onChangeNameCompleted​(int token, KiiGroup group, java.lang.Exception exception)
      Notify completion of change naem of the group to the cloud.
      void onDeleteCompleted​(int token, java.lang.Exception exception)
      Notify completion of deleting the group.
      void onGetOwnerCompleted​(int token, KiiGroup group, KiiUser owner, java.lang.Exception e)
      Notify completion of get owner of the group
      void onListMembersCompleted​(int token, java.util.List<KiiUser> members, KiiGroup group, java.lang.Exception exception)
      Notify completion of getting the members list of the group.
      void onRefreshCompleted​(int token, KiiGroup group, java.lang.Exception exception)
      Notify completion of refresh the group.
      void onSaveCompleted​(int token, KiiGroup group, java.lang.Exception exception)
      Notify completion of saving the group to the cloud.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KiiGroupCallBack

        public KiiGroupCallBack()
    • 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.
      • onGetOwnerCompleted

        public void onGetOwnerCompleted​(int token,
                                        @NonNull
                                        KiiGroup group,
                                        @Nullable
                                        KiiUser owner,
                                        @Nullable
                                        java.lang.Exception e)
        Notify completion of get owner of the group
        Parameters:
        token - task id
        group - Group which execute KiiGroup.getOwner(KiiGroupCallBack)
        owner - Owner of this group
        e - Exception if operation failed. null if succeeded.
      • onListMembersCompleted

        public void onListMembersCompleted​(int token,
                                           @Nullable
                                           java.util.List<KiiUser> members,
                                           @NonNull
                                           KiiGroup group,
                                           @Nullable
                                           java.lang.Exception exception)
        Notify completion of getting the members list of the group.
        Parameters:
        token - task id
        members - Member list.
        group - KiiGroup which members are retrieved.
        exception - Exception if operation failed. null if succeeded.
      • onSaveCompleted

        public void onSaveCompleted​(int token,
                                    @NonNull
                                    KiiGroup group,
                                    @Nullable
                                    java.lang.Exception exception)
        Notify completion of saving the group to the cloud.
        Parameters:
        token - task id
        group - KiiGroup that is saved to the cloud.
        exception - GroupOperationException if operation failed. null if succeeded.
      • onChangeNameCompleted

        public void onChangeNameCompleted​(int token,
                                          @NonNull
                                          KiiGroup group,
                                          @Nullable
                                          java.lang.Exception exception)
        Notify completion of change naem of the group to the cloud.
        Parameters:
        token - task id
        group - KiiGroup which name is updated to the cloud.
        exception - GroupOperationException if operation failed. null if succeeded.
      • onRefreshCompleted

        public void onRefreshCompleted​(int token,
                                       @NonNull
                                       KiiGroup group,
                                       @Nullable
                                       java.lang.Exception exception)
        Notify completion of refresh the group.
        Parameters:
        token - task id
        group - KiiGroup that is saved to the cloud.
        exception - Exception if operation failed. null if succeeded.
      • onDeleteCompleted

        public void onDeleteCompleted​(int token,
                                      @Nullable
                                      java.lang.Exception exception)
        Notify completion of deleting the group.
        Parameters:
        token - task id
        exception - Exception if operation failed. null if succeeded.