GiniCaptureNetworkCallback

public interface GiniCaptureNetworkCallback<R, E>

Used by the GiniCaptureNetworkService and GiniCaptureNetworkApi to return the outcome of network calls.

Parameters

<R>

result type

<E>

error type

Functions

cancelled
Link copied to clipboard
abstract void cancelled()
Called when the network call has been cancelled.
failure
Link copied to clipboard
abstract void failure(E error)
Called when the network call failed.
success
Link copied to clipboard
abstract void success(R result)
Called when the network call completed successfully.