Creates a reachability monitor for a given hostname. Returns null if hostName is empty. Under the hood this monitors general system connectivity (the same as reachabilityInternet()), because NWPathMonitor does not support per-hostname targeting.
null
hostName
reachabilityInternet()
NWPathMonitor
A hostname string (e.g. "example.com").
"example.com"
A new HSNetworkReachability monitor, or null if hostName is empty.
HSNetworkReachability
Creates a reachability monitor for a given hostname. Returns
nullifhostNameis empty. Under the hood this monitors general system connectivity (the same asreachabilityInternet()), becauseNWPathMonitordoes not support per-hostname targeting.