PrefetchOperationCallback


@Profile.ExperimentalUrlPrefetch
public interface PrefetchOperationCallback<T>


Callback interface for prefetch operations.

Parameters
<T>

The type of the result returned on successful operation.

Summary

Public methods

abstract void

Called when the prefetch operation fails.

abstract void
onSuccess(T result)

Called when the prefetch operation completes successfully.

Public methods

onError

abstract void onError(@Nullable Throwable exception)

Called when the prefetch operation fails.

Parameters
@Nullable Throwable exception

The exception indicating the cause of the failure.

onSuccess

abstract void onSuccess(T result)

Called when the prefetch operation completes successfully.

Parameters
T result

The result of the prefetch operation.