Added in API level 1
Deprecated in API level 29

DetailedState


class DetailedState
kotlin.Any
   ↳ kotlin.Enum<android.net.NetworkInfo.DetailedState>
   ↳ android.net.NetworkInfo.DetailedState

The fine-grained state of a network connection. This level of detail is probably of interest to few applications. Most should use State instead.

Summary

Enum values

Network link established, performing authentication.

Access to this network is blocked.

Checking if network is a captive portal

IP traffic should be available.

Currently setting up data connection.

IP traffic not available.

Currently tearing down data connection.

Attempt to connect failed.

Ready to start data connection setup.

Awaiting response from DHCP server in order to assign IP address information.

Searching for an available access point.

IP traffic is suspended

Link has poor connectivity.

Enum values

AUTHENTICATING

Added in API level 1
enum val AUTHENTICATING : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Network link established, performing authentication.

BLOCKED

Added in API level 14
Deprecated in API level 29
enum val BLOCKED : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Access to this network is blocked.

CAPTIVE_PORTAL_CHECK

Added in API level 17
Deprecated in API level 29
enum val CAPTIVE_PORTAL_CHECK : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Checking if network is a captive portal

CONNECTED

Added in API level 1
enum val CONNECTED : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

IP traffic should be available.

CONNECTING

Added in API level 1
enum val CONNECTING : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Currently setting up data connection.

DISCONNECTED

Added in API level 1
enum val DISCONNECTED : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

IP traffic not available.

DISCONNECTING

Added in API level 1
enum val DISCONNECTING : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Currently tearing down data connection.

FAILED

Added in API level 1
enum val FAILED : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Attempt to connect failed.

IDLE

Added in API level 1
enum val IDLE : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Ready to start data connection setup.

OBTAINING_IPADDR

Added in API level 1
enum val OBTAINING_IPADDR : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Awaiting response from DHCP server in order to assign IP address information.

SCANNING

Added in API level 1
enum val SCANNING : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Searching for an available access point.

SUSPENDED

Added in API level 1
enum val SUSPENDED : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

IP traffic is suspended

Added in API level 16
Deprecated in API level 29
enum val VERIFYING_POOR_LINK : NetworkInfo.DetailedState

Deprecated: Deprecated in Java.

Link has poor connectivity.