public enum BleDeviceOrigin extends java.lang.Enum<BleDeviceOrigin>
BleDevice
instance was created.Enum Constant and Description |
---|
EXPLICIT
Created from
BleManager.newDevice(String, String) or overloads. |
FROM_DISCOVERY
Created from an advertising discovery right before
DiscoveryListener.onEvent(com.idevicesinc.sweetblue.DiscoveryListener.DiscoveryEvent) is called. |
Modifier and Type | Method and Description |
---|---|
static BleDeviceOrigin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleDeviceOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleDeviceOrigin EXPLICIT
BleManager.newDevice(String, String)
or overloads.
This type of device can only be BleDeviceState.UNDISCOVERED
by using
BleManager.undiscover(BleDevice)
.public static final BleDeviceOrigin FROM_DISCOVERY
DiscoveryListener.onEvent(com.idevicesinc.sweetblue.DiscoveryListener.DiscoveryEvent)
is called.public static BleDeviceOrigin[] values()
for (BleDeviceOrigin c : BleDeviceOrigin.values()) System.out.println(c);
public static BleDeviceOrigin 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