NetworkConstraint

Network constraint enumeration.

Note that APIs below 23 cannot have two real (non-VPN) network interfaces enabled at the same time.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
annotation class Value
Network constraint value.

Properties

Link copied to clipboard
val ANY_NETWORK: String = "unspecified"
Use any network available.
Link copied to clipboard
val CELLULAR_ONLY: String = "cellular"
Use cellular exclusively.
Link copied to clipboard
val VPN_ONLY: String = "vpn"
Use VPN exclusively.
Link copied to clipboard
val WIFI_ONLY: String = "wifi"
Use Wi-Fi exclusively.