title: How to reconfigure regions live with Android Beacon Library?
body: <p>I'm trying to make an app that can dynamically change what beacon region is monitored.
  Especially, I need to use MAC-address based regions. The use case is not actually beacons, instead we're researching using BLE advertising for transmission of IoT data. However the beacons use case is so close that using Android Beacon Library made perfect sense.</p>
  <p>Everything works perfectly when statically configured, but if I try to edit the region at runtime it changes absolutely nothing, the results are just like before requested change.</p>
  <p>I have methods like this to change the region (this is for only one at time, but I'll need a list of MACs when I get this working):</p>
  <pre><code>  fun disableMonitoring() {
          if (regionBootstrap != null) {
              regionBootstrap.disable()
          }
      }
  
     fun enableMonitoring() {
          
          regionBootstrap.removeRegion(region)
          region = Region(&quot;wildcard-region&quot;, null, null, null)
          regionBootstrap.addRegion(region)
          regionBootstrap = RegionBootstrap(this, region)
      }
  
     fun enableListening(mac: String) {
          
          regionBootstrap.removeRegion(region)
          region = Region(&quot;regionForMacAddress&quot;, mac)
          regionBootstrap.addRegion(region)
          regionBootstrap = RegionBootstrap(this, region)
      }
  </code></pre>
  <p>I checked that using the disable method makes no difference, and also tried using just add/removeRegion methods without rerunning bootstrap. No luck.</p>
  <p>I'm running this on Samsung S9 Android 10, using 2.18-beta library. I started simply by hacking the Kotlin example code from GitHub.</p>