Compartilhar via


TrafficStats.GetRxPackets(String) Method

Definition

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

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

Parameters

iface
String

The name of the interface.

Returns

The number of received packets.

Attributes

Remarks

Java documentation for android.net.TrafficStats.getRxPackets(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