Android主动向weex传值

WXBridgeManager manager = WXBridgeManager.getInstance();
Map urlData = new HashMap();
urlData.put("url","dd");
urlData.put("showimage","123");
String jsonStr = JSON.toJSONString(urlData);
WXRefreshData refreshData = new WXRefreshData(jsonStr,false);
manager.refreshInstance(mInstance.getInstanceId(),refreshData);

你可能感兴趣的:(android技巧)