Last active
October 11, 2015 23:37
-
-
Save walterlua/3937293 to your computer and use it in GitHub Desktop.
Detecting when webviews have finished loading #coronasdk
This file contains 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
local function onWebViewEvent(event) | |
if "loaded" == event.type then | |
print("Finished loading: ", event.url ) | |
end | |
end | |
local webView = native.newWebView( 0, 0, 500, 400 ) | |
webView:addEventListener("urlRequest", onWebViewEvent) | |
webView:request("http://www.coronalabs.com") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment