Android.Net.TrafficStats.GetUidRxBytes Method
Return number of bytes received by the given UID since device boot.

Syntax

[Android.Runtime.Register("getUidRxBytes", "(I)J", "")]
public static long GetUidRxBytes (int uid)

See Also

Android.OS.Process.MyUid
Android.Content.PM.ApplicationInfo.Uid

Parameters

uid
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Return number of bytes received by the given UID since device boot. Counts packets across all 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 NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#JELLY_BEAN_MR2, this may return TrafficStats.Unsupported on devices where statistics aren't available.

[Android Documentation]

Requirements

Namespace: Android.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8