onRequest

var onRequest: suspend (String, PortalRequestMethod, params: List<Any>) -> Any

Callback invoked when a request is received from the WebView.

Return

The result of the request handling.

Parameters

String

The request identifier.

PortalRequestMethod

The request method being called.

params

A list of parameters associated with the request.