public final enum

SupplicantState

extends Enum<E extends Enum<E>>
implements Parcelable
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ android.net.wifi.SupplicantState

Class Overview

From defs.h in wpa_supplicant.

These enumeration values are used to indicate the current wpa_supplicant state. This is more fine-grained than most users will be interested in. In general, it is better to use NetworkInfo.State.

Note, the order of these enum constants must match the numerical values of the state constants in defs.h in wpa_supplicant.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
static boolean isValidState(SupplicantState state)
Returns true if the supplicant state is valid and false otherwise.
static SupplicantState valueOf(String name)
final static SupplicantState[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface android.os.Parcelable
From interface java.lang.Comparable

Public Methods

public static boolean isValidState (SupplicantState state)

Since: API Level 1

Returns true if the supplicant state is valid and false otherwise.

Parameters
state The supplicant state
Returns
  • true if the supplicant state is valid and false otherwise.

public static SupplicantState valueOf (String name)

Since: API Level 1

public static final SupplicantState[] values ()

Since: API Level 1