void NewBeaconsFound(object sender, BeaconsFoundEventArgs e) { _adapter.Update(e.Beacons); _findAllBeacons.Stop(); count = _adapter.Count; }
void NewBeaconsFound (object sender, BeaconsFoundEventArgs e)//called when _findAllBeacons is done searching { //e contains all information about detected iBeacons, including MAC address and distance from user's device _adapter.Update (e.Beacons); _findAllBeacons.Stop (); button.Text = string.Format ("{0} Estimote iBeacon(s) detected! Tap to retry.", _adapter.Count); }
void NewBeaconsFound(object sender, BeaconsFoundEventArgs e) { _adapter.Update(e.Beacons); ActionBar.Subtitle = string.Format("Found {0} beacons.", _adapter.Count); _findAllBeacons.Stop(); // TODO - change back to the refresh icon. }
void NewBeaconsFound(object sender, BeaconsFoundEventArgs e) { _adapter.Update(e.Beacons); _findAllBeacons.Stop(); RunOnUiThread(() => { if (_refreshItem != null) { _refreshItem.SetActionView(null); _refreshItem.SetIcon(Resource.Drawable.ic_refresh); } }); ActionBar.Subtitle = string.Format("Found {0} beacons.", _adapter.Count); }
void NewBeaconsFound(object sender, BeaconsFoundEventArgs e) { _adapter.Update(e.Beacons); //_findAllBeacons.Stop(); RunOnUiThread(() =>{ if (_refreshItem != null) { _refreshItem.SetActionView(null); _refreshItem.SetIcon(Resource.Drawable.ic_refresh); } }); ActionBar.Subtitle = string.Format("Found {0} beacons.", _adapter.Count); }