public class NetworkInformation extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkInformation.NetworkType |
| Modifier and Type | Field and Description |
|---|---|
static String |
EFFECTIVE_TYPE_2G |
static String |
EFFECTIVE_TYPE_3G |
static String |
EFFECTIVE_TYPE_4G |
static String |
EFFECTIVE_TYPE_SLOW_2G |
| Constructor and Description |
|---|
NetworkInformation(double downlink,
double downlinkMax,
String effectiveType,
int rtt,
boolean saveData,
NetworkInformation.NetworkType type) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDownlink() |
double |
getDownlinkMax() |
String |
getEffectiveType() |
int |
getRtt()
This value is always a multiple of 25.
|
NetworkInformation.NetworkType |
getType() |
boolean |
isSaveData() |
public static final String EFFECTIVE_TYPE_SLOW_2G
public static final String EFFECTIVE_TYPE_2G
public static final String EFFECTIVE_TYPE_3G
public static final String EFFECTIVE_TYPE_4G
public NetworkInformation(double downlink,
double downlinkMax,
String effectiveType,
int rtt,
boolean saveData,
NetworkInformation.NetworkType type)
public double getDownlink()
public double getDownlinkMax()
public String getEffectiveType()
public int getRtt()
public boolean isSaveData()
public NetworkInformation.NetworkType getType()
Copyright © 2020 XDEV Software Corp.. All rights reserved.