Exemplo n.º 1
0
 public void OnBeaconRangingNotify(BeaconRangingEvent eventArgs)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         OnBeaconRangingDataChanged(this, eventArgs);
     });
 }
Exemplo n.º 2
0
        public void Subscribe()
        {
            _beaconRangingEventArgs = new BeaconRangingEvent();
            _runEventTimer          = new Timer(5000);
            _runEventTimer.Elapsed += TimerTick;
            _runEventTimer.Start();

            _beaconRangingEventArgs.Enter = false;
        }
Exemplo n.º 3
0
        private void SetUpForBeaconsRanging()
        {
            _firstEntry             = true;
            _beaconRangingEventArgs = new BeaconRangingEvent();

            AppDelegate.LocationManager.DidDetermineState += (s, e) =>
            {
                if (_firstEntry)
                {
                    if (e.State == CLRegionState.Inside)
                    {
                        PrepareRangingEventProperties(true, e.Region.Identifier);
                        _firstEntry = false;
                    }
                }
            };

            AppDelegate.LocationManager.RegionLeft    += RegionLeftDelegate;
            AppDelegate.LocationManager.RegionEntered += RegionEnteredDelegate;
        }
Exemplo n.º 4
0
 void OnBeaconRangingNotify(BeaconRangingEvent eventArgs)
 {
     OnBeaconRangingDataChanged(this, eventArgs);
 }
Exemplo n.º 5
0
 private void SetUpForBeaconsRanging()
 {
     MainActivity.BeaconsMonitorNotifier.EnterRegionComplete += EnteredRegion;
     MainActivity.BeaconsMonitorNotifier.ExitRegionComplete  += ExitedRegion;
     _beaconRangingEventArgs = new BeaconRangingEvent();
 }