event.name

Type String
Event networkStatus
Revision 2017.3060
Keywords networkStatus, name
See also network.setStatusListener()

Overview

String value of "networkStatus".

Example

local function myNetworkReachabilityListener( event )
    print( "name", event.name )
    print( "address", event.address )
    print( "isReachable", event.isReachable )
    print( "isConnectionRequired", event.isConnectionRequired )
    print( "isConnectionOnDemand", event.isConnectionOnDemand )
    print( "IsInteractionRequired", event.isInteractionRequired )
    print( "IsReachableViaCellular", event.isReachableViaCellular )
    print( "IsReachableViaWiFi", event.isReachableViaWiFi )
end
 
if network.canDetectNetworkStatusChanges then
    network.setStatusListener( "www.apple.com", myNetworkReachabilityListener )
else
    print( "Network reachability not supported on this platform" )
end