addJavascriptInterface

open fun addJavascriptInterface(object: Any, name: String)

Add JavaScript interface for In-Apps extension. All exported methods should be marked with @JavascriptInterface annotation.

Parameters

object

java object that will be available inside In-App page

name

specified object will be available as window.`name`