- java.lang.Object
-
- com.gluonhq.attach.ble.Configuration
-
public class Configuration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Configuration(java.lang.String uuid)
Create a configuration that allows to listen to the specified UUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUuid(java.lang.String uuid)
Adds a uuid to the list of beacons we want to monitor/scanjava.util.List<java.lang.String>
getUuids()
Returns a list of uuids this configuration allows to monitor/scan.void
removeUuid(java.lang.String uuid)
Remove this uuid from the list of uuid-beacons we want to monitor/scan
-
-
-
Method Detail
-
addUuid
public void addUuid(java.lang.String uuid)
Adds a uuid to the list of beacons we want to monitor/scan- Parameters:
uuid
- the UUID of the beacons we want to follow
-
removeUuid
public void removeUuid(java.lang.String uuid)
Remove this uuid from the list of uuid-beacons we want to monitor/scan- Parameters:
uuid
- the uuid we want to remove
-
getUuids
public java.util.List<java.lang.String> getUuids()
Returns a list of uuids this configuration allows to monitor/scan. This method never returns null.- Returns:
- the list of uuids, or an empty list of we don't want to follow a specific uuid.
-
-