InternetConnectivity

com.anywherecommerce.android.sdk.util

Class InternetConnectivity

  • java.lang.Object

  • com.anywherecommerce.android.sdk.util.InternetConnectivity

  • public class <span class="typeNameLabel">InternetConnectivity</span>
    extends java.lang.Object
    

Constructor Summary

  Constructor and Description`<span class="memberNameLink">

InternetConnectivity()`

Method Summary

  Modifier and TypeMethod and Description`static boolean``<span class="memberNameLink">

hasConnectivity(Context context) static boolean``

haveInternet(Context ctx)`Checks if we have a valid Internet Connection on the device.

Methods inherited from class java.lang.Object

        `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

InternetConnectivity

        `public InternetConnectivity()`

Method Detail

haveInternet

        `public static boolean haveInternet(Context ctx)`Checks if we have a valid Internet Connection on the device.
        
        Parameters:`ctx` Returns:True if device has Internet Code from: http://www.androidsnippets.org/snippets/131/

hasConnectivity

        `public static boolean hasConnectivity(Context context)`