de.unikassel.android.sdcframework.transmission.facade
Interface ConnectivityWrapper

Package class diagram package ConnectivityWrapper
All Known Implementing Classes:
ConnectivityWrapperImpl

public interface ConnectivityWrapper

Interface for a connectivity wrapper.


Method Summary
 boolean isAnyConnectionAvailable(Context context)
          Test method for any available Internet connection
 boolean isNetworkConnected(Context context, int networkType)
          Test method for an available network connection
 boolean testHostReachability(Context context, String hostName)
          Does test if the host is reachable
 

Method Detail

isNetworkConnected

boolean isNetworkConnected(Context context,
                           int networkType)
Test method for an available network connection

Parameters:
context - the application context
networkType - the network type
Returns:
true if the requested network type is valid and connected

testHostReachability

boolean testHostReachability(Context context,
                             String hostName)
Does test if the host is reachable

Parameters:
context - the application context
hostName - the host name to detect route to
Returns:
true if there is a route to host, false otherwise

isAnyConnectionAvailable

boolean isAnyConnectionAvailable(Context context)
Test method for any available Internet connection

Parameters:
context - the application context
Returns:
true if any Internet connection is available, false otherwise