ドキュメント

Unity Engine

Unity Engine

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.