PrerenderOperationCallback


@WebViewCompat.ExperimentalUrlPrerender
interface PrerenderOperationCallback


Callback interface for the prerender operation.

Summary

Public functions

Unit

Called when the prerender operation fails.

Unit

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

Public functions

onError

fun onError(exception: PrerenderException): Unit

Called when the prerender operation fails.

Parameters
exception: PrerenderException

The exception indicating the cause of the failure.

onPrerenderActivated

fun onPrerenderActivated(): Unit

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.