Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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

@UiThread 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.