次の方法で共有


TrafficStats.ThreadStatsTag Property

Definition

Get the active tag used when accounting Socket traffic originating from the current thread. -or- Set active tag to use when accounting Socket traffic originating from the current thread.

public static int ThreadStatsTag { [Android.Runtime.Register("getThreadStatsTag", "()I", "")] get; [Android.Runtime.Register("setThreadStatsTag", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getThreadStatsTag", "()I", "")>]
[<set: Android.Runtime.Register("setThreadStatsTag", "(I)V", "")>]
static member ThreadStatsTag : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Get the active tag used when accounting Socket traffic originating from the current thread. Only one active tag per thread is supported. #tagSocket(Socket).

Java documentation for android.net.TrafficStats.getThreadStatsTag().

Property setter documentation:

Set active tag to use when accounting Socket traffic originating from the current thread. Only one active tag per thread is supported.

Changes only take effect during subsequent calls to #tagSocket(Socket).

Tags between 0xFFFFFF00 and 0xFFFFFFFF are reserved and used internally by system services like DownloadManager when performing traffic on behalf of an application.

Java documentation for android.net.TrafficStats.setThreadStatsTag(int).

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

See also