@Implements(value=android.net.NetworkInfo.class) public class ShadowNetworkInfo extends Object
android.net.NetworkInfo.| Constructor and Description |
|---|
ShadowNetworkInfo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
__staticInitializer__() |
android.net.NetworkInfo.DetailedState |
getDetailedState() |
android.net.NetworkInfo.State |
getState() |
int |
getSubtype() |
int |
getType() |
boolean |
isAvailable() |
boolean |
isConnected() |
boolean |
isConnectedOrConnecting() |
static android.net.NetworkInfo |
newInstance(android.net.NetworkInfo.DetailedState detailedState,
int type,
int subType,
boolean isAvailable,
boolean isConnected) |
void |
setAvailableStatus(boolean isAvailable)
Non-Android accessor
Sets up the return value of
isAvailable(). |
void |
setConnectionStatus(boolean isConnected)
Non-Android accessor.
|
void |
setConnectionType(int connectionType)
Non-Android accessor
Sets up the return value of
getType(). |
void |
setDetailedState(android.net.NetworkInfo.DetailedState detailedState) |
void |
setSubType(int subType) |
public static void __staticInitializer__()
public static android.net.NetworkInfo newInstance(android.net.NetworkInfo.DetailedState detailedState,
int type,
int subType,
boolean isAvailable,
boolean isConnected)
@Implementation public boolean isConnected()
@Implementation public boolean isConnectedOrConnecting()
@Implementation public android.net.NetworkInfo.State getState()
@Implementation public android.net.NetworkInfo.DetailedState getDetailedState()
@Implementation public int getType()
@Implementation public int getSubtype()
@Implementation public boolean isAvailable()
public void setAvailableStatus(boolean isAvailable)
isAvailable().isAvailable - the value that isAvailable() will return.public void setConnectionStatus(boolean isConnected)
Sets up the return value of isConnectedOrConnecting() and isConnected().
isConnected - the value that isConnectedOrConnecting() and isConnected() will return.public void setConnectionType(int connectionType)
getType().connectionType - the value that getType() will return.public void setSubType(int subType)
public void setDetailedState(android.net.NetworkInfo.DetailedState detailedState)
Copyright © 2016. All rights reserved.