incubator-weex-site
incubator-weex-site copied to clipboard
异常的捕捉,应该单独拎出来
https://weex.apache.org/zh/guide/extend/extend-android.html#adapter-%E6%B3%A8%E5%86%8C
IWXJSExceptionAdapter WEEX的异常上报接口,包括
下载异常 白屏异常 js异常 降级异常 public interface IWXJSExceptionAdapter { void onJSException(WXJSExceptionInfo exception); } 使用方式:
WXSDKEngine.setJSExcetptionAdapter(new TestExceptionAdapter());
现在放在这里有点偏僻,很难看到
感谢你的反馈,Weex目前是隶属于Apache Software Foundation的项目,因此在Gtihub渠道我们鼓励使用英文反馈问题。下面我将使用Google Trasnlate将你的问题翻译成英语,并以英语回答。
Question Description: IWXJSExceptionAdapter WEEX exception reporting interface, including download exception white screen exception js exception downgrade exception public interface IWXJSExceptionAdapter { void onJSException(WXJSExceptionInfo exception); } Usage: WXSDKEngine.setJSExcetptionAdapter(new TestExceptionAdapter()); Now it is a bit remote, very It’s hard to see
Please give us a PR, thanks