public static enum BleScanRecord.Option extends java.lang.Enum<BleScanRecord.Option>
Enum Constant and Description |
---|
CONNECTABLE |
INCLUDE_NAME |
INCLUDE_TX_POWER |
Modifier and Type | Method and Description |
---|---|
int |
bit() |
static int |
getFlags(BleScanRecord.Option[] options) |
int |
or(BitwiseEnum state) |
boolean |
overlaps(int mask) |
static BleScanRecord.Option |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleScanRecord.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleScanRecord.Option CONNECTABLE
public static final BleScanRecord.Option INCLUDE_NAME
public static final BleScanRecord.Option INCLUDE_TX_POWER
public static BleScanRecord.Option[] values()
for (BleScanRecord.Option c : BleScanRecord.Option.values()) System.out.println(c);
public static BleScanRecord.Option 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 static int getFlags(BleScanRecord.Option[] options)
public int or(BitwiseEnum state)
public int bit()
public boolean overlaps(int mask)