public enum WifiMode extends Enum<WifiMode>
Enum Constant and Description |
---|
ADHOC
Uncoordinated network without central infrastructure.
|
INFRA
Client mode - Coordinated network with one or more central controllers.
|
MASTER
Access Point Mode - Coordinated network with one or more central controllers.
|
UNKNOWN
Mode is unknown.
|
Modifier and Type | Method and Description |
---|---|
static int |
getCode(WifiMode wifiMode) |
static WifiMode |
parseCode(int code) |
static WifiMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WifiMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WifiMode UNKNOWN
public static final WifiMode ADHOC
public static final WifiMode INFRA
public static final WifiMode MASTER
public static WifiMode[] values()
for (WifiMode c : WifiMode.values()) System.out.println(c);
public static WifiMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static WifiMode parseCode(int code)
public static int getCode(WifiMode wifiMode)
Copyright © 2013. All Rights Reserved.