Java Code Examples for com.taobao.weex.ui.WXComponentRegistry#reload()

The following examples show how to use com.taobao.weex.ui.WXComponentRegistry#reload() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WXSDKEngine.java    From ucar-weex-core with Apache License 2.0 5 votes vote down vote up
public static void reload(final Context context,String framework, boolean remoteDebug) {
  WXEnvironment.sRemoteDebugMode = remoteDebug;
  WXBridgeManager.getInstance().restart();
  WXBridgeManager.getInstance().initScriptsFramework(framework);
  WXModuleManager.reload();
  WXComponentRegistry.reload();
  WXSDKManager.getInstance().postOnUiThread(new Runnable() {
    @Override
    public void run() {
      LocalBroadcastManager.getInstance(context).sendBroadcast(new Intent(JS_FRAMEWORK_RELOAD));
    }
  }, 1000);
}
 
Example 2
Source File: WXSDKEngine.java    From weex-uikit with MIT License 5 votes vote down vote up
public static void reload(final Context context,String framework, boolean remoteDebug) {
  WXEnvironment.sRemoteDebugMode = remoteDebug;
  WXBridgeManager.getInstance().restart();
  WXBridgeManager.getInstance().initScriptsFramework(framework);
  WXModuleManager.reload();
  WXComponentRegistry.reload();
  WXSDKManager.getInstance().postOnUiThread(new Runnable() {
    @Override
    public void run() {
      LocalBroadcastManager.getInstance(context).sendBroadcast(new Intent(JS_FRAMEWORK_RELOAD));
    }
  });
}