Language

TrafficStats.MobileRxPackets Property

Definition

Return number of packets received across mobile networks since device boot.

public static long MobileRxPackets { [Android.Runtime.Register("getMobileRxPackets", "()J", "")] get; }
[<get: Android.Runtime.Register("getMobileRxPackets", "()J", "")>]
static member MobileRxPackets : int64

Property Value

The number of packets received across mobile interfaces since boot. On Android 5.0 through 8.1, each mobile interface whose statistic is unavailable adds Unsupported (-1) to the total, so the value can be negative. On Android 9.0 and later, such interfaces add 0.

Attributes

Remarks

Return number of packets received 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.

Java documentation for android.net.TrafficStats.getMobileRxPackets().

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.

Applies to