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
Modifier and Type Method Description voidaddUuid(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.voidremoveUuid(java.lang.String uuid)Remove this uuid from the list of uuid-beacons we want to monitor/scan
-
Constructor Details
-
Configuration
public Configuration(java.lang.String uuid)Create a configuration that allows to listen to the specified UUID- Parameters:
uuid- the uuid of the beacons we will be monitoring/scanning
-
-
Method Details
-
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.
-