Search code examples
androidibeacon-androidaltbeacon

Can I get the "onCycleEnd" event for AltBeacon Android SDK


I'm using the AltBeacon library in my app, and only running the scan every few minutes, whether foreground or background. I would really like to know when the scan has completed, though, as I also want to occasionally scan for non-LE Bluetooth devices. I see that there is an event called "onCycleEnd", which seems like what I'm looking for, but I can't figure out how (or if) I can get to it to handle when that event fires.

Is there a way I can do that?


Solution

  • When the cycle ends, the didRangeBeaconsInRegion fires. You should be able to trigger any necessary logic on that callback.