public class Connectivity
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Connectivity.Builder |
Modifier | Constructor and Description |
---|---|
protected |
Connectivity() |
protected |
Connectivity(Connectivity.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static Connectivity |
create() |
static Connectivity |
create(android.content.Context context) |
protected static Connectivity |
create(android.content.Context context,
android.net.ConnectivityManager manager) |
boolean |
equals(java.lang.Object o) |
android.net.NetworkInfo.DetailedState |
getDetailedState() |
java.lang.String |
getExtraInfo() |
java.lang.String |
getReason() |
android.net.NetworkInfo.State |
getState() |
int |
getSubType() |
java.lang.String |
getSubTypeName() |
int |
getType() |
java.lang.String |
getTypeName() |
int |
hashCode() |
boolean |
isAvailable() |
boolean |
isFailover() |
boolean |
isRoaming() |
java.lang.String |
toString() |
protected Connectivity()
protected Connectivity(Connectivity.Builder builder)
public static Connectivity create()
public static Connectivity create(android.content.Context context)
protected static Connectivity create(android.content.Context context, android.net.ConnectivityManager manager)
public android.net.NetworkInfo.State getState()
public android.net.NetworkInfo.DetailedState getDetailedState()
public int getType()
public int getSubType()
public boolean isAvailable()
public boolean isFailover()
public boolean isRoaming()
public java.lang.String getTypeName()
public java.lang.String getSubTypeName()
public java.lang.String getReason()
public java.lang.String getExtraInfo()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object