process
abstract fun process(context: String, featureName: String, method: String, id: String?, data: JSONObject?, onResponse: (params: JSONObject) -> Unit)
Processes a JavaScript message received by the WebView.
This method is responsible for handling a message with the given parameters and invoking a callback to send a response back to the JavaScript code.
Parameters
featureName
The name of the feature associated with the message.
method
The method name of the message.
id
An optional identifier for the message.
data
An optional JSON object containing additional data for the message.
onResponse
A callback function to send a response back to the JavaScript code.