File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
js-messaging/js-messaging-api/src/main/java/com/duckduckgo/js/messaging/api Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,18 @@ interface AdsjsMessaging {
51
51
}
52
52
53
53
interface AdsjsJsMessageCallback {
54
+ /* *
55
+ * Processes a JavaScript message received by the WebView.
56
+ *
57
+ * This method is responsible for handling a message with the given parameters
58
+ * and invoking a callback to send a response back to the JavaScript code.
59
+ *
60
+ * @param featureName The name of the feature associated with the message.
61
+ * @param method The method name of the message.
62
+ * @param id An optional identifier for the message.
63
+ * @param data An optional JSON object containing additional data for the message.
64
+ * @param onResponse A callback function to send a response back to the JavaScript code.
65
+ */
54
66
fun process (
55
67
featureName : String ,
56
68
method : String ,
@@ -69,6 +81,7 @@ interface AdsjsMessageHandler {
69
81
*
70
82
* @param jsMessage The JavaScript message to be processed.
71
83
* @param jsMessageCallback An optional callback to handle the result of the message processing.
84
+ * @param onResponse A callback function to send a response back to the JavaScript code.
72
85
*/
73
86
fun process (
74
87
jsMessage : JsMessage ,
You can’t perform that action at this time.
0 commit comments