Package com.kii.cloud.storage.callback
Class KiiPushCallBack
- java.lang.Object
-
- com.kii.cloud.storage.callback.KiiPushCallBack
-
public abstract class KiiPushCallBack extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KiiPushCallBack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCheckSubscriptionCompleted(int taskId, KiiSubscribable target, boolean isSubscribed, java.lang.Exception e)
Called whenKiiPushSubscription.isSubscribed(KiiSubscribable)
has completed.void
onInstallCompleted(int taskId, java.lang.Exception e)
Called whenKiiPushInstallation.install(String, KiiPushCallBack)
has completed.void
onSubscribeBucketCompleted(int taskId, KiiBucket target, java.lang.Exception e)
Called whenKiiPushSubscription.subscribeBucket(KiiBucket, KiiPushCallBack)
has completed.void
onSubscribeCompleted(int taskId, KiiSubscribable target, java.lang.Exception e)
Called whenKiiPushSubscription.subscribe(KiiSubscribable, KiiPushCallBack)
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.void
onUninstallCompleted(int taskId, java.lang.Exception e)
Called whenKiiPushInstallation.uninstall(String, KiiPushCallBack)
has completed.void
onUnSubscribeBucketCompleted(int taskId, KiiBucket target, java.lang.Exception e)
Called whenKiiPushSubscription.unsubscribeBucket(KiiBucket)
has completed.void
onUnSubscribeCompleted(int taskId, KiiSubscribable target, java.lang.Exception e)
Called whenKiiPushSubscription.unsubscribe(KiiSubscribable)
has completed.
-
-
-
Method Detail
-
onInstallCompleted
public void onInstallCompleted(int taskId, @Nullable java.lang.Exception e)
Called whenKiiPushInstallation.install(String, KiiPushCallBack)
has completed. This would be called from UI/Main thread.- Parameters:
taskId
- id of the task.e
- null when succeeded.
-
onUninstallCompleted
public void onUninstallCompleted(int taskId, @Nullable java.lang.Exception e)
Called whenKiiPushInstallation.uninstall(String, KiiPushCallBack)
has completed. This would be called from UI/Main thread.- Parameters:
taskId
- id of the task.e
- null when succeeded.
-
onSubscribeBucketCompleted
public void onSubscribeBucketCompleted(int taskId, @Nullable KiiBucket target, @Nullable java.lang.Exception e)
Called whenKiiPushSubscription.subscribeBucket(KiiBucket, KiiPushCallBack)
has completed. This would be called form UI/Main thread.- Parameters:
taskId
- id of the task.target
- target bucket of subscriptione
- null when succeeded.
-
onUnSubscribeBucketCompleted
public void onUnSubscribeBucketCompleted(int taskId, @Nullable KiiBucket target, @Nullable java.lang.Exception e)
Called whenKiiPushSubscription.unsubscribeBucket(KiiBucket)
has completed. This would be called from UI/Main thread.- Parameters:
taskId
- id of the task.target
- target bucket of unsubscriptione
- null when succeeded.
-
onSubscribeCompleted
public void onSubscribeCompleted(int taskId, @Nullable KiiSubscribable target, @Nullable java.lang.Exception e)
Called whenKiiPushSubscription.subscribe(KiiSubscribable, KiiPushCallBack)
has completed. This would be called from UI/Main thread.- Parameters:
taskId
- id of the task.target
- of the subscriptione
- null when succeeded.
-
onUnSubscribeCompleted
public void onUnSubscribeCompleted(int taskId, @Nullable KiiSubscribable target, @Nullable java.lang.Exception e)
Called whenKiiPushSubscription.unsubscribe(KiiSubscribable)
has completed. This would be called from UI/Main thread.- Parameters:
taskId
- id of the task.target
- of the subscriptione
- null when succeeded.
-
onCheckSubscriptionCompleted
public void onCheckSubscriptionCompleted(int taskId, @Nullable KiiSubscribable target, boolean isSubscribed, @Nullable java.lang.Exception e)
Called whenKiiPushSubscription.isSubscribed(KiiSubscribable)
has completed. This would be called from UI/Main thread.- Parameters:
taskId
- id of the task.target
- of the subscriptionisSubscribed
- true if the target is subscribed, otherwise false.e
- null when succeeded.
-
onTaskCancel
public void onTaskCancel(int taskId)
Runs on the UI thread after the task has been canceled.- Parameters:
taskId
- id of the task
-
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)
-
-