Skip to content

Instantly share code, notes, and snippets.

@walterlua
Last active October 11, 2015 23:37
Show Gist options
  • Save walterlua/3937293 to your computer and use it in GitHub Desktop.
Save walterlua/3937293 to your computer and use it in GitHub Desktop.
Detecting when webviews have finished loading #coronasdk
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