public class

HtcNetworkConnectivityHelper

extends Object
java.lang.Object
   ↳ android.net.HtcNetworkConnectivityHelper

Summary

Nested Classes
enum HtcNetworkConnectivityHelper.State  
Public Constructors
HtcNetworkConnectivityHelper(Context context)
Create a new NetworkConnectivityListener.
Public Methods
String getReason()
HtcNetworkConnectivityHelper.State getState()
int startUsingNetowrkFeature(String feature, Handler target, int what)
Tells the underlying networking system that the caller wants to begin using the named feature.
int stopUsingNetworkFeature(Handler target)
Tells the underlying networking system that the caller is finished using the named feature.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HtcNetworkConnectivityHelper (Context context)

Create a new NetworkConnectivityListener.

Public Methods

public String getReason ()

public int startUsingNetowrkFeature (String feature, Handler target, int what)

Tells the underlying networking system that the caller wants to begin using the named feature. The interpretation of feature is completely up to each networking implementation.

Parameters
feature the name of the feature to be used
Returns
  • an integer value representing the outcome of the request. The interpretation of this value is specific to each networking implementation+feature combination, except that the value -1 always indicates failure.

public int stopUsingNetworkFeature (Handler target)

Tells the underlying networking system that the caller is finished using the named feature. The interpretation of feature is completely up to each networking implementation.

Returns
  • an integer value representing the outcome of the request. The interpretation of this value is specific to each networking implementation+feature combination, except that the value -1 always indicates failure.