次の方法で共有


TrafficStats.MobileTxPackets Property

Definition

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

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

Property Value

Attributes

Remarks

Return number of packets 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.getMobileTxPackets().

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