Пример #1
0
		void NewBeaconsFound(object sender, BeaconsFoundEventArgs e)
		{
			_adapter.Update(e.Beacons);
			_findAllBeacons.Stop();

			count = _adapter.Count;
		}
Пример #2
0
		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);
		}
Пример #3
0
        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.
        }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }