Language

TrafficStats.TagDatagramSocket(DatagramSocket) Method

Definition

Tag the given DatagramSocket with any statistics parameters active for the current thread.

[Android.Runtime.Register("tagDatagramSocket", "(Ljava/net/DatagramSocket;)V", "", ApiSince=24)]
public static void TagDatagramSocket(Java.Net.DatagramSocket socket);
[<Android.Runtime.Register("tagDatagramSocket", "(Ljava/net/DatagramSocket;)V", "", ApiSince=24)>]
static member TagDatagramSocket : Java.Net.DatagramSocket -> unit

Parameters

socket
DatagramSocket

The socket whose traffic accounting parameters are set from the current thread.

Attributes

Remarks

Tag the given DatagramSocket with any statistics parameters active for the current thread. Subsequent calls always replace any existing parameters. When finished, call #untagDatagramSocket(DatagramSocket) to remove statistics parameters.

Java documentation for android.net.TrafficStats.tagDatagramSocket(java.net.DatagramSocket).

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