void destroyInstance(String instanceId) { if (TextUtils.isEmpty(instanceId)) { return; } if (!WXUtils.isUiThread()) { throw new WXRuntimeException("[WXSDKManager] destroyInstance error"); } mWXRenderManager.removeRenderStatement(instanceId); mWXDomManager.removeDomStatement(instanceId); mBridgeManager.destroyInstance(instanceId); WXModuleManager.destroyInstanceModules(instanceId); }
public void destroy() { if (mWXDomManager != null) { mWXDomManager.destroy(); } }