Skip to content

Commit c10bb68

Browse files
committed
Add docs
1 parent 835e109 commit c10bb68

File tree

1 file changed

+3
-2
lines changed
  • js-messaging/js-messaging-api/src/main/java/com/duckduckgo/js/messaging/api

1 file changed

+3
-2
lines changed

js-messaging/js-messaging-api/src/main/java/com/duckduckgo/js/messaging/api/AdsjsMessaging.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ package com.duckduckgo.js.messaging.api
1818

1919
import org.json.JSONObject
2020

21-
abstract class WebViewCompatMessageCallback {
22-
abstract fun process(
21+
interface WebViewCompatMessageCallback {
22+
fun process(
2323
featureName: String,
2424
method: String,
2525
id: String?,
@@ -37,6 +37,7 @@ interface WebCompatMessageHandler {
3737
*
3838
* @param jsMessage The JavaScript message to be processed.
3939
* @param jsMessageCallback An optional callback to handle the result of the message processing.
40+
* @param onResponse A callback function to send a response back to the JavaScript code.
4041
*/
4142

4243
//TODO: Simplify by removing the onResponse and callback

0 commit comments

Comments
 (0)