internetReachability
Returns the type of internet reachability currently possible on the device.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static NetworkReachability internetReachability { get; }
Remarks
This property is mostly useful on handhelds to distinguish fast and cheap WiFi connection from carrier networking.
Note: Do not use this property to determine the actual connectivity. For example, the device can be connected to a hot spot, but not have the actual route to the network.
Non-handhelds are considered to be always capable of NetworkReachability.ReachableViaLocalAreaNetwork.