# WebViewCompat.VisualStateCallback

Artifact: [androidx.webkit:webkit](https://developer.android.com/jetpack/androidx/releases/webkit) [View Source](https://cs.android.com/search?q=file:androidx/webkit/WebViewCompat.java+class:androidx.webkit.WebViewCompat.VisualStateCallback) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/webkit#1.1.0)

*** ** * ** ***


```
public interface WebViewCompat.VisualStateCallback
```

<br />

*** ** * ** ***

Callback interface supplied to `https://developer.android.com/reference/androidx/webkit/WebViewCompat#postVisualStateCallback(android.webkit.WebView,long,androidx.webkit.WebViewCompat.VisualStateCallback)` for receiving notifications about the visual state.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `@https://developer.android.com/reference/androidx/annotation/UiThread https://developer.android.com/reference/androidx/webkit/WebViewCompat.VisualStateCallback#onComplete(long)(long requestId)` Invoked when the visual state is ready to be drawn in the next `https://developer.android.com/reference/android/webkit/WebView.html#onDraw(android.graphics.Canvas)`. |

## Public methods

### onComplete

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/webkit#1.1.0)

```
@UiThread
abstract void onComplete(long requestId)
```

Invoked when the visual state is ready to be drawn in the next `https://developer.android.com/reference/android/webkit/WebView.html#onDraw(android.graphics.Canvas)`.

| Parameters |
|---|---|
| `long requestId` | The identifier passed to `https://developer.android.com/reference/androidx/webkit/WebViewCompat#postVisualStateCallback(android.webkit.WebView,long,androidx.webkit.WebViewCompat.VisualStateCallback)` when this callback was posted. |