event.isReachableViaCellular

Type Boolean
Event networkStatus
Revision 2017.3111
Keywords networkStatus, isReachableViaCellular

Overview

This property is true if the host is reachable through the cellular network.

Gotchas

networkStatus events are only supported on macOS and iOS.

Example

local function myNetworkReachabilityListener( event )
    print( "IsReachableViaCellular", event.isReachableViaCellular )
end