public class NetworkStatistic
extends java.lang.Object
implements android.os.Parcelable
可以通过接口ECVoIPSetupManager.getNetworkStatistic(String)
获得,包含当前通话所发生的流量等信息
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<NetworkStatistic> |
CREATOR |
限定符 | 构造器和说明 |
---|---|
|
NetworkStatistic() |
protected |
NetworkStatistic(android.os.Parcel in) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents() |
long |
getDuration()
返回当前媒体交互的持续时间
|
long |
getMobileRxBytes()
返回在duration时间内,移动网络接收的总流量,单位字节
|
long |
getMobileTxBytes()
返回在duration时间内,移动网络发送的总流量,单位字节
|
long |
getWifiRxBytes()
返回在duration时间内,WIFI网络接收的总流量,单位字节
|
long |
getWifiTxBytes()
返回在duration时间内,WIFI网络发送的总流量,单位字节
|
void |
setDuration(long duration)
将媒体交互的持续时间更新到流量统计信息中
|
void |
setMobileRxBytes(long mobileRxBytes)
将在duration时间内,移动网络接收的总流量更新到流量统计信息中
|
void |
setMobileTxBytes(long mobileTxBytes)
将在duration时间内,移动网络发送的总流量更新到流量统计信息中
|
void |
setWifiRxBytes(long wifiRxBytes)
将在在duration时间内,WIFI网络接收的总流量更新到流量统计信息中
|
void |
setWifiTxBytes(long wifiTxBytes)
将在duration时间内,WIFI网络发送的总流量更新到流量统计信息中
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<NetworkStatistic> CREATOR
public NetworkStatistic()
protected NetworkStatistic(android.os.Parcel in)
public long getDuration()
public void setDuration(long duration)
duration
- 媒体交互的持续时间public long getMobileTxBytes()
public void setMobileTxBytes(long mobileTxBytes)
mobileTxBytes
- duration时间内移动网络发送的总流量public long getMobileRxBytes()
public void setMobileRxBytes(long mobileRxBytes)
mobileRxBytes
- duration时间内移动网络接收的总流量public long getWifiTxBytes()
public void setWifiTxBytes(long wifiTxBytes)
wifiTxBytes
- duration时间内,WIFI网络发送的总流量public long getWifiRxBytes()
public void setWifiRxBytes(long wifiRxBytes)
wifiRxBytes
- duration时间内,WIFI网络接收的总流量public int describeContents()
describeContents
在接口中 android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
在接口中 android.os.Parcelable
public java.lang.String toString()
toString
在类中 java.lang.Object
Copyright © 2017 All rights reserved.