Register now for Android Dev Summit 2019!

VisualStateCallback

interface VisualStateCallback
androidx.webkit.WebViewCompat.VisualStateCallback

Callback interface supplied to postVisualStateCallback for receiving notifications about the visual state.

Summary

Public methods

abstract Unit
onComplete(requestId: Long)

Invoked when the visual state is ready to be drawn in the next WebView#onDraw.

Public methods

onComplete

abstract fun onComplete(requestId: Long): Unit

Invoked when the visual state is ready to be drawn in the next WebView#onDraw.

Parameters
requestId Long: The identifier passed to postVisualStateCallback when this callback was posted.