is Initialized
true once initialize has completed successfully (or the first highlight / highlightToHtml call has finished warming up the WebView).
This is a StateFlow so Composables can observe initialization reactively without a separate var engineReady flag:
val isReady by engine.isInitialized.collectAsState()
if (isReady) {
// WebView is warm - next highlight call has no init latency
}Content copied to clipboard