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

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