added in version 1.0.0
belongs to Maven artifact androidx.webkit:webkit:1.0.0-beta01

WebViewCompat.VisualStateCallback

public static interface WebViewCompat.VisualStateCallback

androidx.webkit.WebViewCompat.VisualStateCallback


Callback interface supplied to WebViewCompat.postVisualStateCallback(WebView, long, WebViewCompat.VisualStateCallback) for receiving notifications about the visual state.

Summary

Public methods

abstract void onComplete(long requestId)

Invoked when the visual state is ready to be drawn in the next WebView.onDraw(Canvas).

Public methods

onComplete

added in version 1.0.0
public abstract void onComplete (long requestId)

Invoked when the visual state is ready to be drawn in the next WebView.onDraw(Canvas).

Parameters
requestId long: The identifier passed to WebViewCompat.postVisualStateCallback(WebView, long, WebViewCompat.VisualStateCallback) when this callback was posted.