Skip to content

Instantly share code, notes, and snippets.

@agap
Created June 23, 2020 21:25
Show Gist options
  • Save agap/36ac5fee6514d0a2859e9df9f424dd7e to your computer and use it in GitHub Desktop.
Save agap/36ac5fee6514d0a2859e9df9f424dd7e to your computer and use it in GitHub Desktop.
val beaconScanner = BeaconScanner.Builder(this)
.setBeaconListener(
object : IBeaconListener {
override fun onBeaconEntered(beacon: Beacon) {
// do something with your beacon
}
override fun onBeaconExited(beacon: Beacon) {
// do something with your beacon
}
override fun onBeaconUpdated(beacon: Beacon) {
// do something with your beacon
}
}
)
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment