Package com.kii.cloud.storage.callback
Class KiiTopicCallBack
- java.lang.Object
-
- com.kii.cloud.storage.callback.KiiTopicCallBack
-
public class KiiTopicCallBack extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KiiTopicCallBack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onDeleteCompleted(int taskId, java.lang.Exception e)
Called whenKiiTopic.delete(KiiTopicCallBack)
has completed.void
onSaveCompleted(int taskId, KiiTopic target, java.lang.Exception e)
Called whenKiiTopic.save(KiiTopicCallBack)
has completed.void
onSendMessageCompleted(int taskId, KiiTopic target, KiiPushMessage message, java.lang.Exception e)
Called whenKiiTopic.sendMessage(KiiPushMessage, KiiTopicCallBack)
has completed.void
onTaskCancel(int taskId)
Runs on the UI thread after the task has been canceled.void
onTaskStart(int taskId)
Runs on the UI thread before the task is executed.
-
-
-
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 executingKii.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 whenKiiTopic.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 whenKiiTopic.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 whenKiiTopic.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.
-
-