Sdílet prostřednictvím


TrafficStats.GetTxBytes(String) Method

Definition

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

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

Parameters

iface
String

The name of the interface.

Returns

The number of transmitted bytes.

Attributes

Remarks

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