setCancellationCallback

Sets the cancellation callback for HTTP request events

Return

An automatic cancellation object. You should not get notifications after you call cancel on this object. Setting a new callback will invalidate old Cancelable objects.

Parameters

callback

The callback for cancellations to be set.