Added in API level 26

NetworkSpecifier


public abstract class NetworkSpecifier
extends Object

java.lang.Object
   ↳ android.net.NetworkSpecifier


Describes specific properties of a requested network for use in a NetworkRequest. This as an abstract class. Applications shouldn't instantiate this class by themselves, but can obtain instances of subclasses of this class via other APIs.

Summary

Public constructors

NetworkSpecifier()

Create a placeholder object.

Inherited methods

Public constructors

NetworkSpecifier

Added in API level 29
public NetworkSpecifier ()

Create a placeholder object. Please use subclasses of this class in a NetworkRequest to request a network.