Package com.pointrlabs.core.vendor
Class Reachability
-
- All Implemented Interfaces:
public class Reachability
-
-
Constructor Summary
Constructors Constructor Description Reachability()
-
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 -
-
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
-
-
-
-