Class KiiBucketCallBack<T>

  • All Implemented Interfaces:
    CountCallBack

    public abstract class KiiBucketCallBack<T>
    extends java.lang.Object
    implements CountCallBack
    • Constructor Detail

      • KiiBucketCallBack

        public KiiBucketCallBack()
    • 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.
      • onDeleteCompleted

        public void onDeleteCompleted​(int token,
                                      @Nullable
                                      java.lang.Exception exception)
        Runs on the UI thread after the KiiBucket.delete(KiiBucketCallBack) has been executed.
        Parameters:
        token - id of this task.
        exception - null if succeeded.
      • onCountCompleted

        public void onCountCompleted​(@NonNull
                                     KiiBucket bucket,
                                     @Nullable
                                     KiiQuery query,
                                     int count,
                                     @Nullable
                                     java.lang.Exception exception)
        Description copied from interface: CountCallBack
        Runs on the UI thread after KiiBucket.count(CountCallBack) has been executed.
        Specified by:
        onCountCompleted in interface CountCallBack
        Parameters:
        bucket - on which the query has executed.
        query - executed query.
        count - number of objects matched the specified query.
        exception - null if succeeded.