public enum AdvertisingFlag extends java.lang.Enum<AdvertisingFlag>
Enum Constant and Description |
---|
BR_EDR_Not_Supported |
General_Discoverable_Mode |
LE_And_EDR_Supported_Controller |
LE_And_EDR_Supported_Host |
Limited_Discoverable_Mode |
Unknown |
Modifier and Type | Method and Description |
---|---|
int |
bit() |
static AdvertisingFlag |
fromBit(int bit) |
boolean |
overlaps(int mask) |
static AdvertisingFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdvertisingFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvertisingFlag Limited_Discoverable_Mode
public static final AdvertisingFlag General_Discoverable_Mode
public static final AdvertisingFlag BR_EDR_Not_Supported
public static final AdvertisingFlag LE_And_EDR_Supported_Controller
public static final AdvertisingFlag LE_And_EDR_Supported_Host
public static final AdvertisingFlag Unknown
public static AdvertisingFlag[] values()
for (AdvertisingFlag c : AdvertisingFlag.values()) System.out.println(c);
public static AdvertisingFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int bit()
public boolean overlaps(int mask)
public static AdvertisingFlag fromBit(int bit)