event.isReachableViaWiFi

Type Boolean
Event networkStatus
Revision 2017.3112
Keywords networkStatus, isReachableViaWiFi
See also network.setStatusListener()

Overview

This property is true if the requested host is reachable via WiFi.

Note that on Mac, ethernet also counts as WiFi.

Gotchas

networkStatus events are only supported on macOS and iOS.

Example

local function myNetworkReachabilityListener( event )
    print( "IsReachableViaWiFi", event.isReachableViaWiFi )
end