@Implements(value=android.net.Network.class, minSdk=21) public class ShadowNetwork extends java.lang.Object
Constructor and Description |
---|
ShadowNetwork() |
Modifier and Type | Method and Description |
---|---|
void |
__constructor__(int netId) |
int |
getNetId()
Allows to get the stored netId.
|
static android.net.Network |
newInstance(int netId)
Creates new instance of
Network , because its constructor is hidden. |
public static android.net.Network newInstance(int netId)
Creates new instance of Network
, because its constructor is hidden.
netId
- The netId.@Implementation public void __constructor__(int netId)
public int getNetId()
Allows to get the stored netId.