EazyNetChecker Class |
Namespace: Hellmade.Net
public class EazyNetChecker : MonoBehaviour
The EazyNetChecker type exposes the following members.
Name | Description | |
---|---|---|
EazyNetChecker | Initializes a new instance of the EazyNetChecker class |
Name | Description | |
---|---|---|
CheckInterval |
How often an internet check will be performed (if a continuous check is started). The minimum is 3 seconds. If less than the minimum is given, it will automatically set on the minimum.
| |
Downtime |
The total time in seconds that Eazy NetChecker could not establish a connection
| |
IsChecking |
Whether it is currently checking the internet connection status
| |
NextCheckRemaingSeconds |
The number of seconds remaining until the next check. Returns 0 if no check is planned.
| |
PlatformDefaultSelected |
Whether the option to always choose the paltform default check method is enabled.
| |
ReachabilityType |
The type of internet reachability.
| |
Runtime |
The total time in seconds that Eazy NetChecker has been running
| |
ShowDebug |
Whether to show debug information during the operation of Eazy NetChecker.
| |
Status |
The current detected status of the internet connection
| |
Timeout |
The time after which an internet check will timeout
| |
Uptime |
The total time in seconds that Eazy NetChecker has determined there was an established connection
|
Name | Description | |
---|---|---|
AddCustomMethod(NetCheckMethod) |
Adds a new custom method
| |
AddCustomMethod(NetCheckMethod, Boolean) |
Adds a new custom method
| |
CheckConnection |
Checks and determines the current internet connection status only once. It uses the selected method. If no check method is selected, it uses the default one.
| |
GetAppleHotspotMethod |
Returns the Apple Hotspot method
| |
GetCustomMethod |
Returns the specified custom method
| |
GetCustomMethods |
Returns a list with all the added custom methods.
| |
GetDefaultMethod |
Returns the default method. The default method is selected based on which platform it is running on.
| |
GetGoogle204Method |
Returns the Google204 method
| |
GetMicrosoftConnectTestMethod |
Returns the Microsoft Connect Test method. Use this only on windows, as it may be blocked on other devices.
| |
GetSelectedMethod |
Returns the current selected method.
| |
GetStandardMethods |
Returns a list with the all the predefined standard check methods
| |
Init |
Initializes NetChecker. Call this only if you want to reinitialize. First initialization is done automatically.
| |
SetStandardCheckMethods |
Validates and sets the standard check methods. You do not need to call this function. It is only used by the editor.
| |
StartConnectionCheck |
Starts an iterated internet connection check on the specified interval. It uses the selected method. If no check method is selected, it uses the default one.
| |
StartConnectionCheck(Boolean, Boolean) |
Starts an iterated internet connection check on the specified interval. It uses the selected method. If no check method is selected, it uses the default one.
| |
StopConnectionCheck |
Stops all current connections checks
| |
UseAppleHotspotMethod |
Selects the Apple Hotspot method for internet connection checks.
| |
UseDefaultMethod |
Selects the default method which is selected based on which platform it is running on.
| |
UseGoogle204Method |
Selects the Google204 method for internet connection checks.
| |
UseMethod |
Selects the specified method for internet connection checks.
| |
UseMicrosoftConnectTestMethod |
Selects the Microsoft Connect Test method for internet connection checks.
|
Name | Description | |
---|---|---|
OnCheckFinished |
Event raised when a check just finished
| |
OnCheckStarted |
Event raised when a check is started
| |
OnCheckTimeout |
Event raised when a check times out
| |
OnConnectionStatusChanged |
Event raised when the connection status has changed
|