PrerenderOperationCallback


@WebViewCompat.ExperimentalUrlPrerender
public interface PrerenderOperationCallback


Callback interface for the prerender operation.

Summary

Public methods

abstract void

Called when the prerender operation fails.

abstract void

Called when a prerendered page is activated (used for an actual navigation).

Public methods

onError

abstract void onError(@NonNull PrerenderException exception)

Called when the prerender operation fails.

Parameters
@NonNull PrerenderException exception

The exception indicating the cause of the failure.

onPrerenderActivated

abstract void onPrerenderActivated()

Called when a prerendered page is activated (used for an actual navigation). Use this callback to perform any necessary actions when the prerendering completes and the page becomes active.