Class Reachability

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Reachability()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean isReachable(Context context) Is reachable boolean.
      static String getProxyUrl(@NonNull() Context context) Checks the network and tries to find an active proxy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Reachability

        Reachability()
    • Method Detail

      • isReachable

         static boolean isReachable(Context context)

        Is reachable boolean.

        Returns:

        the boolean

      • getProxyUrl

        @Nullable() static String getProxyUrl(@NonNull() Context context)

        Checks the network and tries to find an active proxy

        Parameters:
        context - to access system services
        Returns:

        proxy url constructed as {ProxyInfo#getHost()}:{ProxyInfo#getPort()} () } null if there is no network connection or an active proxy