Class Configuration

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
    void addUuid​(java.lang.String uuid)
    Adds a uuid to the list of beacons we want to monitor/scan
    java.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.