i am using Kontakt beacons for android.here is the link for SDK i am using. There is only a single constructor for region accepting all the params namely minor, major , uuid and region identifier. I want to monitor a region based on only UUID and the start monitoring method from example here accepts only region as parameter and parameter set. Please guide me how to proceed.
2 Answers
0
votes
0
votes
You can use the constructor in that way from the documentation:
Collection<IBeaconRegion> beaconRegions = new ArrayList<>();
IBeaconRegion region = new BeaconRegion.Builder()
.identifier("My second Region")
.proximity(UUID.fromString("6565d504-e306-4119-8266-0f8d4401cd0a"))
.major(BeaconRegion.ANY_MAJOR) //any major, default value
.minor(BeaconRegion.ANY_MINOR) //any minor, default value
.build();
beaconRegions.add(region);
proximityManager.spaces().iBeaconRegions(beaconRegions);