Class KiiTopicCallBack


  • public class KiiTopicCallBack
    extends java.lang.Object
    • Constructor Detail

      • KiiTopicCallBack

        public KiiTopicCallBack()
    • Method Detail

      • onTaskStart

        public void onTaskStart​(int taskId)
        Runs on the UI thread before the task is executed.
        Parameters:
        taskId - id of the task. can be used for cancel task by executing Kii.cancelTask(int)
      • onTaskCancel

        public void onTaskCancel​(int taskId)
        Runs on the UI thread after the task has been canceled.
        Parameters:
        taskId - id of the task
      • onSaveCompleted

        public void onSaveCompleted​(int taskId,
                                    @NonNull
                                    KiiTopic target,
                                    @Nullable
                                    java.lang.Exception e)
        Called when KiiTopic.save(KiiTopicCallBack) has completed. This would be called form UI/Main thread.
        Parameters:
        taskId - id of the task.
        target - KiiTopic requested for save.
        e - null when succeeded.
      • onDeleteCompleted

        public void onDeleteCompleted​(int taskId,
                                      @Nullable
                                      java.lang.Exception e)
        Called when KiiTopic.delete(KiiTopicCallBack) has completed. This would be called form UI/Main thread.
        Parameters:
        taskId - id of the task.
        e - null when succeeded.
      • onSendMessageCompleted

        public void onSendMessageCompleted​(int taskId,
                                           @NonNull
                                           KiiTopic target,
                                           @Nullable
                                           KiiPushMessage message,
                                           @Nullable
                                           java.lang.Exception e)
        Called when KiiTopic.sendMessage(KiiPushMessage, KiiTopicCallBack) has completed. This would be called form UI/Main thread.
        Parameters:
        taskId - id of the task.
        target - KiiTopic requested for send message.
        message - requested to send.
        e - null when succeeded.