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

Added in 1.13.0-beta01
fun onError(exception: PrerenderException): Unit

Called when the prerender operation fails.

Parameters
exception: PrerenderException

The exception indicating the cause of the failure.

onPrerenderActivated

Added in 1.13.0-beta01
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.