TrafficStats.GetTxPackets(String) Method

Definition

Return the number of packets transmitted on the specified interface since the interface was created.

[Android.Runtime.Register("getTxPackets", "(Ljava/lang/String;)J", "", ApiSince=30)]
public static long GetTxPackets (string iface);
[<Android.Runtime.Register("getTxPackets", "(Ljava/lang/String;)J", "", ApiSince=30)>]
static member GetTxPackets : string -> int64

Parameters

iface
String

The name of the interface.

Returns

The number of transmitted packets.

Attributes

Remarks

Java documentation for android.net.TrafficStats.getTxPackets(java.lang.String).

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