WebView addJavascriptInterface function with Parameters

前端 未结 1 1131
礼貌的吻别
礼貌的吻别 2021-01-16 07:02

I have added a JavaScript Interface to WebView.

I am able to use all the Functions which has no Parameters.

But When i gave the Parameter from JavaScript. T

1条回答
  •  攒了一身酷
    2021-01-16 07:06

    If you change the method parameters from int to String then the function should be callable from within the WebView:

    public String getCellString(String row, String column)
    {
        return row + "," + column;
    }
    

    0 讨论(0)
提交回复
热议问题