Ejemplo n.º 1
0
		void NewBeaconsFound(object sender, BeaconsFoundEventArgs e)
		{
			_adapter.Update(e.Beacons);
			_findAllBeacons.Stop();

			count = _adapter.Count;
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 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.
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }