public void setPostCreateMessage(Message postCreateMessage) { if (view != null) { sendPostCreateMessage(getWebView().getWebView(), postCreateMessage); } else { this.postCreateMessage = postCreateMessage; } }
@Override public TiUIView createView(Activity activity) { ((TiBaseActivity) activity).addOnLifecycleEventListener(this); ((TiBaseActivity) activity).addInterceptOnBackPressedEventListener(this); TiUIWebView webView = new TiUIWebView(this); if (postCreateMessage != null) { sendPostCreateMessage(webView.getWebView(), postCreateMessage); postCreateMessage = null; } return webView; }