event.name

Type String
Event networkStatus
Revision Release 2022.3683
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