Package com.castlabs.android.network
Class GoogleDNSConnectivityCheck
java.lang.Object
com.castlabs.android.network.SocketConnectivityCheck
com.castlabs.android.network.GoogleDNSConnectivityCheck
- All Implemented Interfaces:
ConnectivityCheck
-
Constructor Summary
ConstructorDescriptionGoogleDNSConnectivityCheck
(Context context) Check the connectivity by establishing a connection to "8.8.8.8:53", which is a Google DNS, with the connection timeout of 5000msGoogleDNSConnectivityCheck
(Context context, int timeoutMs) Check the connectivity by establishing a connection to "8.8.8.8:53", which is a Google DNS, with specified connection timeout in ms -
Method Summary
Methods inherited from class com.castlabs.android.network.SocketConnectivityCheck
isConnected
-
Constructor Details
-
GoogleDNSConnectivityCheck
Check the connectivity by establishing a connection to "8.8.8.8:53", which is a Google DNS, with the connection timeout of 5000ms- Parameters:
context
- The context
-
GoogleDNSConnectivityCheck
Check the connectivity by establishing a connection to "8.8.8.8:53", which is a Google DNS, with specified connection timeout in ms- Parameters:
context
- The contexttimeoutMs
- The timeout in milliseconds
-