0

I have used this example to detect beacons. In this example, Is it possible to detect which beacon is triggering the action?

Rohit Singh
  • 16,950
  • 7
  • 90
  • 88
Nikmaniac
  • 29
  • 6

1 Answers1

0

You can do that with the ProximityZoneContext object that's being passed to the onEnter/onExit actions:

val proximityZone = ProximityZoneBuilder()
            .forTag("my-beacons")
            .inNearRange()
            .onEnter {
                Log.i(TAG, "onEnter: ${it.deviceId}")
            }
            .build()
heypiotr
  • 2,139
  • 2
  • 15
  • 22