android - Change Kontakt SDK time frame for updating beacon distance -




i've been trying use kontakt.io's sample android app implement simple app connect kontakt beacon , show beacon details. noticed beacons updating slow i.e. after 2 seconds, want update after 400 or 500 milliseconds when beacon device move here , there android screen should show distance in more fast way. following code scan activity.here getting majors of beacons , distances phone. , on update updating first index i.e. first beacon detected , getting distance updating slow

private ibeaconlistener createibeaconlistener() { return new ibeaconlistener() {   @override   public void onibeacondiscovered(ibeacondevice ibeacon, ibeaconregion region) {     log.i(tag, "onibeacondiscovered: " + ibeacon.getmajor() + " " + ibeacon.getdistance());   }    @override   public void onibeaconsupdated(list<ibeacondevice> ibeacons, ibeaconregion region) {     log.i(tag, "onibeaconsupdated: " + ibeacons.get(0).getdistance());    }    @override   public void onibeaconlost(ibeacondevice ibeacon, ibeaconregion region) {     log.e(tag, "onibeaconlost: " + ibeacon.tostring());   } }; 

i don't know change or see after time beacon updating. knows it?





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -