|
Essential Kit
|
Provides cross-platform interface to check network connectivity status. More...
Static Public Member Functions | |
| static void | StartNotifier () |
| Starts the notifier. | |
| static void | StopNotifier () |
| Stops the notifier. | |
Advanced Usage | |
| static void | Initialize (NetworkServicesUnitySettings settings) |
| Initialize the NetworkServices module with the given settings. This call is optional and only need to be called if you have custom settings to initialize this feature. | |
Properties | |
| static bool | IsInternetActive [get] |
| A boolean value that is used to determine internet connectivity status. | |
| static bool | IsHostReachable [get] |
| A boolean value that is used to determine whether host is reachable or not. | |
| static bool | IsNotifierActive [get] |
| A boolean value that is used to determine whether notifier is running or not. | |
Events | |
| static Callback< NetworkServicesInternetConnectivityStatusChangeResult > | OnInternetConnectivityChange |
| Event that will be called whenever network state changes. | |
| static Callback< NetworkServicesHostReachabilityStatusChangeResult > | OnHostReachabilityChange |
| Event that will be called whenever host reachability state changes. | |
The following example illustrates how to use network service related events.
|
static |
| settings | The settings to be used for initialization. |
The settings configure the behavior of the NetworkServices module.
References NetworkServices.IsHostReachable, NetworkServices.IsInternetActive, NetworkServices.OnHostReachabilityChange, NetworkServices.OnInternetConnectivityChange, and NetworkServices.StartNotifier().
|
staticget |
true if connected to network; otherwise, false.
Referenced by NetworkServices.Initialize().
|
staticget |
true if is host reachable; otherwise, false.
Referenced by NetworkServices.Initialize().
|
staticget |
true if notifier is active; otherwise, false.
Referenced by NetworkServices.StartNotifier(), and NetworkServices.StopNotifier().