public interface

KinveyCancellableCallback

implements KinveyClientCallback<T>
com.kinvey.java.core.KinveyCancellableCallback<T>

Summary

Public Methods
abstract boolean isCancelled()
Have this method return true if the pending request should be cancelled.
abstract void onCancelled()
Called on the UI thread after a request has been cancelled.
[Expand]
Inherited Methods
From interface com.kinvey.java.core.KinveyClientCallback

Public Methods

public abstract boolean isCancelled ()

Have this method return true if the pending request should be cancelled. This return value of this method will be checked regularly while execution occurs, and before the callback is made.

If a request has already been sent over the network, having this method return true will only result in callbacks being ignored.

Once a request has been sent over the network this functionality will ONLY have a client-side effect.

Returns
  • true if request should be cancelled, false if it should not

public abstract void onCancelled ()

Called on the UI thread after a request has been cancelled.

Depending on the reason for cancellation, this method can either do nothing, or update the UI.