TrafficStats.ThreadStatsTag Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.