Skip to content

Instantly share code, notes, and snippets.

@agap
Created June 23, 2020 20:32
Show Gist options
  • Save agap/442e009762883e950143f389dc7d88e2 to your computer and use it in GitHub Desktop.
Save agap/442e009762883e950143f389dc7d88e2 to your computer and use it in GitHub Desktop.
val region = Region.Builder()
.setNullField()
.setUuidField(UUID.fromString("01234567-0123-4567-89AB-456789ABCDEF"))
.setIntegerField(154)
.setIntegerField(10122)
.build()
val beaconScanner = BeaconScanner.Builder(this)
.setRegions(listOf(region))
.setBeaconBatchListener { beacons: Collection<Beacon> ->
// do something with your beacons here
}
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment