Class KiiQueryCallBack<T>


  • public abstract class KiiQueryCallBack<T>
    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 onQueryCompleted​(int token, KiiQueryResult<T> result, java.lang.Exception exception)
      Runs on the UI thread after the KiiBucket#query(KiiQueryCallBack, String, com.kii.cloud.storage.query.KiiQuery) 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.
      • Methods inherited from class java.lang.Object

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

      • KiiQueryCallBack

        public KiiQueryCallBack()
    • 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.
      • onQueryCompleted

        public void onQueryCompleted​(int token,
                                     @Nullable
                                     KiiQueryResult<T> result,
                                     @Nullable
                                     java.lang.Exception exception)
        Runs on the UI thread after the KiiBucket#query(KiiQueryCallBack, String, com.kii.cloud.storage.query.KiiQuery) has been executed.
        Parameters:
        token - id of this task.
        result - Result of the query.
        exception - null if succeeded.