TrafficStats.MobileTxBytes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return number of bytes transmitted across mobile networks since device boot.
public static long MobileTxBytes { [Android.Runtime.Register("getMobileTxBytes", "()J", "")] get; }
[<get: Android.Runtime.Register("getMobileTxBytes", "()J", "")>]
static member MobileTxBytes : int64
Property Value
- Attributes
Remarks
Return number of bytes transmitted across mobile networks since device boot. Counts packets across all mobile network interfaces, and always increases monotonically since device boot. Statistics are measured at the network layer, so they include both TCP and UDP usage.
Before android.os.Build.VERSION_CODES#JELLY_BEAN_MR2
, this may return #UNSUPPORTED
on devices where statistics aren't available.
Java documentation for android.net.TrafficStats.getMobileTxBytes()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.