Created
June 23, 2020 21:25
-
-
Save agap/36ac5fee6514d0a2859e9df9f424dd7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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