Beispiel #1
0
 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);
 }
Beispiel #2
0
 public void destroy() {
   if (mWXDomManager != null) {
     mWXDomManager.destroy();
   }
 }