代码用的demo中的代码
DCUniMPSDK.getInstance().releaseWgtToRunPath(item.getAppId(), uniMPReleaseConfiguration, new IUniMPReleaseCallBack() {
@Override
public void onCallBack(int code, Object pArgs) {
Log.e("unimp", "code --- " + code + " pArgs --" + pArgs);
if (code == 1) {
//释放wgt完成
try {
IUniMP uniMP = DCUniMPSDK.getInstance().openUniMP(MainActivity.this, item.getAppId());
//加到缓存中,点击可以关闭
mUniMPCaches.put(uniMP.getAppid(), uniMP);
} catch (Exception e) {
if (tipDialog != null) {
tipDialog.dismiss();
}
e.printStackTrace();
}
} else {
//释放wgt失败
if (tipDialog != null) {
tipDialog.dismiss();
}
}
}
});