Added in API level 26

NetworkSpecifier


abstract class NetworkSpecifier
EthernetNetworkSpecifier

A NetworkSpecifier used to identify ethernet interfaces.

TelephonyNetworkSpecifier

NetworkSpecifier object for cellular network request.

WifiAwareNetworkSpecifier

Network specifier object used to request a Wi-Fi Aware network.

WifiNetworkSpecifier

Network specifier object used to request a Wi-Fi network.

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

Create a placeholder object.

Public constructors

NetworkSpecifier

Added in API level 29
NetworkSpecifier()

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