本文整理汇总了Java中com.taobao.weex.common.IWXDebugProxy类的典型用法代码示例。如果您正苦于以下问题:Java IWXDebugProxy类的具体用法?Java IWXDebugProxy怎么用?Java IWXDebugProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IWXDebugProxy类属于com.taobao.weex.common包,在下文中一共展示了IWXDebugProxy类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: launchInspector
import com.taobao.weex.common.IWXDebugProxy; //导入依赖的package包/类
private void launchInspector(boolean remoteDebug) {
if (WXEnvironment.isApkDebugable()) {
try {
HackedClass<Object> waBridge = WXHack.into("com.taobao.weex.devtools.debug.DebugServerProxy");
IWXDebugProxy debugProxy = (IWXDebugProxy) waBridge.constructor(Context.class, WXBridgeManager.class)
.getInstance(WXEnvironment.getApplication(), WXBridgeManager.this);
if (debugProxy != null) {
debugProxy.start();
if (remoteDebug) {
mWXBridge = debugProxy.getWXBridge();
}
}
} catch (HackAssertionException e) {
WXLogUtils.e("launchInspector HackAssertionException " + e);
}
}
}
开发者ID:Laisly,项目名称:weex,代码行数:19,代码来源:WXBridgeManager.java
示例2: onReceive
import com.taobao.weex.common.IWXDebugProxy; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
if (IWXDebugProxy.ACTION_DEBUG_INSTANCE_REFRESH.equals(intent.getAction())) {
if (mRefreshListener != null) {
mRefreshListener.onRefresh();
}
} else if (WXSDKEngine.JS_FRAMEWORK_RELOAD.equals(intent.getAction())) {
if (mReloadListener != null) {
mReloadListener.onReload();
}
}
}
开发者ID:wangwei123,项目名称:my-weex,代码行数:13,代码来源:AbsWeexActivity.java
示例3: onReceive
import com.taobao.weex.common.IWXDebugProxy; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
if (IWXDebugProxy.ACTION_DEBUG_INSTANCE_REFRESH.equals(intent.getAction())) {
Log.v(TAG, "connect to debug server success");
if (mUri != null) {
if (TextUtils.equals(mUri.getScheme(), "http") || TextUtils.equals(mUri.getScheme(), "https")) {
loadWXfromService(mUri.toString());
} else {
loadWXfromLocal(true);
}
}
}
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:14,代码来源:WXPageActivity.java
示例4: onReceive
import com.taobao.weex.common.IWXDebugProxy; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
if (IWXDebugProxy.ACTION_DEBUG_INSTANCE_REFRESH.equals(intent.getAction())) {
if (mRefreshListener != null) {
mRefreshListener.onRefresh();
}
} else if (WXSDKEngine.JS_FRAMEWORK_RELOAD.equals(intent.getAction())) {
if (mReloadListener != null) {
mReloadListener.onReload();
}
}
}
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:13,代码来源:UWXBaseActivity.java
示例5: registerBroadcastReceiver
import com.taobao.weex.common.IWXDebugProxy; //导入依赖的package包/类
public void registerBroadcastReceiver(BroadcastReceiver receiver, IntentFilter filter) {
mBroadcastReceiver = receiver != null ? receiver : new DefaultBroadcastReceiver();
if (filter == null) {
filter = new IntentFilter();
}
filter.addAction(IWXDebugProxy.ACTION_DEBUG_INSTANCE_REFRESH);
filter.addAction(WXSDKEngine.JS_FRAMEWORK_RELOAD);
LocalBroadcastManager.getInstance(getApplicationContext())
.registerReceiver(mBroadcastReceiver, filter);
if (mReloadListener == null) {
setReloadListener(new WxReloadListener() {
@Override
public void onReload() {
createWeexInstance();
renderPage();
}
});
}
if (mRefreshListener == null) {
setRefreshListener(new WxRefreshListener() {
@Override
public void onRefresh() {
createWeexInstance();
renderPage();
}
});
}
}
开发者ID:weexteam,项目名称:weexpack-android,代码行数:34,代码来源:AbsWeexActivity.java
示例6: registerBroadcastReceiver
import com.taobao.weex.common.IWXDebugProxy; //导入依赖的package包/类
private void registerBroadcastReceiver() {
mReceiver = new RefreshBroadcastReceiver();
IntentFilter filter = new IntentFilter();
filter.addAction(IWXDebugProxy.ACTION_DEBUG_INSTANCE_REFRESH);
registerReceiver(mReceiver, filter);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:7,代码来源:WXPageActivity.java
注:本文中的com.taobao.weex.common.IWXDebugProxy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论