ExInAppWebViewController extension

Using the evaluateJavascript method:

To evaluate JS code, you can use the InAppWebViewController.evaluateJavascript method. It accepts a String as source code to be evaluated by the WebView and an optional Content World and returns the result of the evaluation as a dynamictype.

on
  • InAppWebViewController

Methods

emitChainChanged(int? chainId) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

emitConnect(int chainId) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

sendError(int id, String error) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

sendNull(int id) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

sendResponse(int id, String result) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

sendResponseWithBoolean(int id, bool result) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

sendResponseWithList(int id, List<String> results) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

sendRpcError(int id, BaseRpcException error) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

RPC Error { errorCode, message }
setAddress(String address) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

setEthereumConfig(WalletWeb3Provider wallet) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension

Ethereum config Contain: setAddress & setNetwork
setNetwork(int chainId, String rpcUrl) Future<void>

Available on InAppWebViewController, provided by the ExInAppWebViewController extension