com.kinvey.java.core.KinveyCancellableCallback<T> |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.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.