process

abstract fun process(jsMessage: JsMessage): ProcessResult?

Processes a JavaScript message received by the WebView using WebCompat APIs

This method is responsible for handling a JsMessage and optionally invoking a callback so consumers can also process the message if needed.

Parameters

jsMessage

The JavaScript message to be processed.

jsMessageCallback

An optional callback to handle the result of the message processing.

onResponse

A callback function to send a response back to the JavaScript code.