org.solovyev.android.network
Interface NetworkData


public interface NetworkData

User: serso Date: 7/26/12 Time: 5:26 PM


Method Summary
 android.net.NetworkInfo getNetworkInfo()
          Network connectivity information
 android.net.NetworkInfo getOtherNetworkInfo()
          In case of a Disconnect, the connectivity manager may have already established, or may be attempting to establish, connectivity with another network.
 String getReason()
          An optional reason for the connectivity state change may have been supplied.
 NetworkState getState()
           
 boolean isFailover()
          Returns true if the most recent event was for an attempt to switch over to a new network following loss of connectivity on another network.
 

Method Detail

getState

@Nonnull
NetworkState getState()

getReason

@Nullable
String getReason()
An optional reason for the connectivity state change may have been supplied.

Returns:
the reason for the state change, if available, or null otherwise.

isFailover

boolean isFailover()
Returns true if the most recent event was for an attempt to switch over to a new network following loss of connectivity on another network.

Returns:
true if this was a failover attempt, false otherwise.

getNetworkInfo

@Nullable
android.net.NetworkInfo getNetworkInfo()
Network connectivity information


getOtherNetworkInfo

@Nullable
android.net.NetworkInfo getOtherNetworkInfo()
In case of a Disconnect, the connectivity manager may have already established, or may be attempting to establish, connectivity with another network. If so, mOtherNetworkInfo will be non-null.



Copyright © 2013. All Rights Reserved.