Class GoogleDNSConnectivityCheck

    • Constructor Detail

      • GoogleDNSConnectivityCheck

        public GoogleDNSConnectivityCheck​(@NonNull
                                          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 5000ms
        Parameters:
        context - The context
      • GoogleDNSConnectivityCheck

        public GoogleDNSConnectivityCheck​(@NonNull
                                          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
        Parameters:
        context - The context
        timeoutMs - The timeout in milliseconds