📜  使用 javascript 接口从 webview 中提取 javascript 变量 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:10.555000             🧑  作者: Mango

代码示例1
public class CustomJavaScriptInterface {
    Context mContext;

    /** Instantiate the interface and set the context */
    CustomJavaScriptInterface(Context c) {
        mContext = c;
    }
    

    /** retrieve the ids */
    public void getIds(final String myIds) {
        
        //Do somethings with the Ids
    }
    
}