event.type

Type String
Event urlRequest
Revision Release 2024.3703
Keywords urlRequest, type

Overview

The type of urlRequest event that indicates the action associated with the request. Values include:

Example

local function webListener( event )
    if ( event.type ) then
        print( event.type )
    end
end

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480 )
webView:request( "https://solar2d.com/" )

webView:addEventListener( "urlRequest", webListener )