Package 

Class Region

  • All Implemented Interfaces:
    android.os.Parcelable , java.io.Serializable

    
    public class Region
     implements Parcelable, Serializable
                        

    This class represents a criteria of fields used to match beacons. The uniqueId field is used to distinguish this Region in the system. When you set up monitoring or ranging based on a Region and later want to stop monitoring or ranging, you must do so by passing a Region object that has the same uniqueId field value. If it doesn't match, you can't cancel the operation. There is no other purpose to this field. The region can be constructed from a multi-part identifier. The first identifier is the most significant, the second the second most significant, etc. When constructing a range, any or all of these identifiers may be set to null, which indicates that they are a wildcard and will match any value.

    • Constructor Detail

      • Region

        Region(String uniqueId, Identifier id1, Identifier id2, Identifier id3)
        Constructs a new Region object to be used for Ranging or Monitoring
        Parameters:
        uniqueId - - A unique identifier used to later cancel Ranging and Monitoring, or change the region being Ranged/Monitored
        id1 - - most significant identifier (can be null)
        id2 - - second most significant identifier (can be null)
        id3 - - third most significant identifier (can be null)
      • Region

        Region(String uniqueId, List<Identifier> identifiers)
        Constructs a new Region object to be used for Ranging or Monitoring
        Parameters:
        uniqueId - - A unique identifier used to later cancel Ranging and Monitoring, or change the region being Ranged/Monitored
        identifiers - - list of identifiers for this region
      • Region

        Region(String uniqueId, List<Identifier> identifiers, String bluetoothAddress)
        Constructs a new Region object to be used for Ranging or Monitoring
        Parameters:
        uniqueId - - A unique identifier used to later cancel Ranging and Monitoring, or change the region being Ranged/Monitored
        identifiers - - list of identifiers for this region
        bluetoothAddress - - mac address
      • Region

        Region(String uniqueId, String bluetoothAddress)
        Constructs a new Region object to be used for Ranging or Monitoring
        Parameters:
        uniqueId - - A unique identifier used to later cancel Ranging and Monitoring, or change the region being Ranged/Monitored
        bluetoothAddress - - mac address used to match beacons