Last active
March 9, 2022 12:08
-
-
Save marchbold/230d5314ef5244cde082 to your computer and use it in GitHub Desktop.
Removing a WebView
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (webView != null) | |
{ | |
webView.removeEventListener( NativeWebViewEvent.LOCATION_CHANGING, webView_locationChangingHandler ); | |
webView.removeEventListener( NativeWebViewEvent.LOCATION_CHANGE, webView_locationChangeHandler ); | |
webView.removeEventListener( NativeWebViewEvent.COMPLETE, webView_completeHandler ); | |
webView.removeEventListener( NativeWebViewEvent.ERROR, webView_errorHandler ); | |
webView.removeEventListener( NativeWebViewEvent.JAVASCRIPT_RESPONSE, webView_javascriptResponseHandler ); | |
webView.removeEventListener( NativeWebViewEvent.JAVASCRIPT_MESSAGE, webView_javascriptMessageHandler ); | |
webView.removeEventListener( TouchEvent.TOUCH_TAP, webView_tapHandler ); | |
webView.dispose(); | |
webView = null; | |
} | |
// com.distriqt.NativeWebView |
Are these still working? Like are you guys still active?
Yes and yes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://airnativeextensions.com/extension/com.distriqt.NativeWebView