Click or drag to resize

EazyNetChecker Class

Static class responsible of checking if internet connection can be established.It handles all the checks and stores all standard and custom check methods.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Hellmade.NetEazyNetChecker

Namespace:  Hellmade.Net
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class EazyNetChecker : MonoBehaviour

The EazyNetChecker type exposes the following members.

Constructors
  NameDescription
Public methodEazyNetChecker
Initializes a new instance of the EazyNetChecker class
Top
Properties
  NameDescription
Public propertyStatic memberCheckInterval
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.
Public propertyStatic memberDowntime
The total time in seconds that Eazy NetChecker could not establish a connection
Public propertyStatic memberIsChecking
Whether it is currently checking the internet connection status
Public propertyStatic memberNextCheckRemaingSeconds
The number of seconds remaining until the next check. Returns 0 if no check is planned.
Public propertyStatic memberPlatformDefaultSelected
Whether the option to always choose the paltform default check method is enabled.
Public propertyStatic memberReachabilityType
The type of internet reachability.
Public propertyStatic memberRuntime
The total time in seconds that Eazy NetChecker has been running
Public propertyStatic memberShowDebug
Whether to show debug information during the operation of Eazy NetChecker.
Public propertyStatic memberStatus
The current detected status of the internet connection
Public propertyStatic memberTimeout
The time after which an internet check will timeout
Public propertyStatic memberUptime
The total time in seconds that Eazy NetChecker has determined there was an established connection
Top
Methods
  NameDescription
Public methodStatic memberAddCustomMethod(NetCheckMethod)
Adds a new custom method
Public methodStatic memberAddCustomMethod(NetCheckMethod, Boolean)
Adds a new custom method
Public methodStatic memberCheckConnection
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.
Public methodStatic memberGetAppleHotspotMethod
Returns the Apple Hotspot method
Public methodStatic memberGetCustomMethod
Returns the specified custom method
Public methodStatic memberGetCustomMethods
Returns a list with all the added custom methods.
Public methodStatic memberGetDefaultMethod
Returns the default method. The default method is selected based on which platform it is running on.
Public methodStatic memberGetGoogle204Method
Returns the Google204 method
Public methodStatic memberGetMicrosoftConnectTestMethod
Returns the Microsoft Connect Test method. Use this only on windows, as it may be blocked on other devices.
Public methodStatic memberGetSelectedMethod
Returns the current selected method.
Public methodStatic memberGetStandardMethods
Returns a list with the all the predefined standard check methods
Public methodStatic memberInit
Initializes NetChecker. Call this only if you want to reinitialize. First initialization is done automatically.
Public methodStatic memberSetStandardCheckMethods
Validates and sets the standard check methods. You do not need to call this function. It is only used by the editor.
Public methodStatic memberStartConnectionCheck
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.
Public methodStatic memberStartConnectionCheck(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.
Public methodStatic memberStopConnectionCheck
Stops all current connections checks
Public methodStatic memberUseAppleHotspotMethod
Selects the Apple Hotspot method for internet connection checks.
Public methodStatic memberUseDefaultMethod
Selects the default method which is selected based on which platform it is running on.
Public methodStatic memberUseGoogle204Method
Selects the Google204 method for internet connection checks.
Public methodStatic memberUseMethod
Selects the specified method for internet connection checks.
Public methodStatic memberUseMicrosoftConnectTestMethod
Selects the Microsoft Connect Test method for internet connection checks.
Top
Events
  NameDescription
Public eventStatic memberOnCheckFinished
Event raised when a check just finished
Public eventStatic memberOnCheckStarted
Event raised when a check is started
Public eventStatic memberOnCheckTimeout
Event raised when a check times out
Public eventStatic memberOnConnectionStatusChanged
Event raised when the connection status has changed
Top
See Also