RZP Addons - mb-14/json2view GitHub Wiki

WebView Action:

Inject JS into the webview when you click on a view. There are two ways to inject JS:

  1. Directly as string: This is for injecting static JS code with no arguments.
  2. From wvActionStorage Hashmap: We execute JS code, stored in a Hashmap which be can modified by us dynamically. This is for injecting dynamic JS code with arguments (Example OTP fill and submit)

Trigger Event:

Execute a specific method for a view when a certain event is triggered. For example: textView.setText("123456") when OTP SMS is received. The method to execute and arguments will be passed as a JSONObject in the following format:

{"function": "setText" , "args" :[{"class":"String" , "value":"123456"}]}