public enum EventType extends java.lang.Enum<EventType>
InternalProximityListener.onEvent(BluetoothDeviceEvent)
.Enum Constant and Description |
---|
DEVICE_DISCOVERED
Called after
SPACE_ENTERED . |
DEVICE_LOST
The event with this type should contain
Space representation with one device from which the Android device has not
received signal for the period described by
ActivityCheckConfiguration.getInactivityTimeout() |
DEVICES_UPDATE
Called after
DEVICE_DISCOVERED . |
SPACE_ABANDONED
Called after
DEVICE_LOST when there are no devices belonging to
the specific space. |
SPACE_ENTERED
Called as a first event whenever Android device enters new space.
|
Modifier and Type | Method and Description |
---|---|
static EventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventType SPACE_ENTERED
public static final EventType DEVICE_DISCOVERED
SPACE_ENTERED
. The event with this type should contain
Space representation with devices list containing exactly one newly discovered device.public static final EventType DEVICES_UPDATE
DEVICE_DISCOVERED
. The event with this type should contain
Space representation with already discovered devices with updated parameters.
This type is notified very often once the Android device receives signals from many
devices nearby.public static final EventType DEVICE_LOST
ActivityCheckConfiguration.getInactivityTimeout()
public static final EventType SPACE_ABANDONED
DEVICE_LOST
when there are no devices belonging to
the specific space. The event with this type should contain Space representation
with no devices devices list.public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType 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