public static enum BleDeviceConfig.RefreshOption extends java.lang.Enum<BleDeviceConfig.RefreshOption>
BleDeviceConfig.useGattRefresh
. This specifies where SweetBlue will refresh the gatt database for a device.Enum Constant and Description |
---|
AFTER_DISCONNECTING
The gatt database will be refreshed after disconnecting from a device.
|
BEFORE_SERVICE_DISCOVERY
The gatt database will be refreshed after connecting, and before service discovery.
|
Modifier and Type | Method and Description |
---|---|
static BleDeviceConfig.RefreshOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleDeviceConfig.RefreshOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleDeviceConfig.RefreshOption BEFORE_SERVICE_DISCOVERY
public static final BleDeviceConfig.RefreshOption AFTER_DISCONNECTING
public static BleDeviceConfig.RefreshOption[] values()
for (BleDeviceConfig.RefreshOption c : BleDeviceConfig.RefreshOption.values()) System.out.println(c);
public static BleDeviceConfig.RefreshOption 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 null