Ejemplo n.º 1
0
 /**
  * Constructs a new Region object to be used for Ranging or Monitoring
  *
  * @param uniqueId - A unique identifier used to later cancel Ranging and Monitoring, or change
  *     the region being Ranged/Monitored
  * @param bluetoothAddress - mac address used to match beacons
  */
 public Region(String uniqueId, String bluetoothAddress) {
   validateMac(bluetoothAddress);
   this.mBluetoothAddress = bluetoothAddress;
   this.mUniqueId = uniqueId;
   this.mIdentifiers = new ArrayList<Identifier>();
   if (uniqueId == null) {
     throw new NullPointerException("uniqueId may not be null");
   }
 }