Google 致力于为黑人社区推动种族平等。查看具体举措

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.