Esempio n. 1
0
        public void OnIBeaconServiceConnect()
        {
            iBeaconManager.SetMonitorNotifier(monitorNotifier);
            iBeaconManager.SetRangeNotifier(rangeNotifier);

            trackButton.Enabled = true;
        }
Esempio n. 2
0
 public void OnIBeaconServiceConnect()
 {
     iBeaconManager.SetMonitorNotifier(monitorNotifier);
     iBeaconManager.SetRangeNotifier(rangeNotifier);
     iBeaconManager.StartMonitoringBeaconsInRegion(monitoringRegion);
     iBeaconManager.StartRangingBeaconsInRegion(rangingRegion);
 }
Esempio n. 3
0
        public void OnIBeaconServiceConnect()
        {
            _iBeaconManager.SetMonitorNotifier(_monitorNotifier);
            _iBeaconManager.SetRangeNotifier(_rangeNotifier);

            _iBeaconManager.StartMonitoringBeaconsInRegion(_monitoringRegion);
            _iBeaconManager.StartRangingBeaconsInRegion(_rangingRegion);
            //  _iBeaconManager.StartMonitoringBeaconsInRegion(_monitoringRegion2);
            //  _iBeaconManager.StartRangingBeaconsInRegion(_rangingRegion2);

            // var te = _iBeaconManager.MonitoredRegions;
        }
Esempio n. 4
0
 public void OnIBeaconServiceConnect()
 {
     try
     {
         beaconManager.SetMonitorNotifier(monitorNotifier);
         beaconManager.SetRangeNotifier(rangeNotifier);
         beaconManager.StartMonitoringBeaconsInRegion(monitorRegion);
         beaconManager.StartRangingBeaconsInRegion(rangeRegion);
     }
     catch (RemoteException ex)
     {
         Console.WriteLine("Exception in connection - {0}", ex.Message);
     }
 }
Esempio n. 5
0
        public void OnIBeaconServiceConnect()
        {
            _iBeaconManager.SetMonitorNotifier(_monitorNotifier);
            _iBeaconManager.SetRangeNotifier(_rangeNotifier);

            foreach (var monitoringRegion in _monitoringRegionsList)
            {
                _iBeaconManager.StartMonitoringBeaconsInRegion(monitoringRegion);
            }

            foreach (var rangingRegion in _rangingRegionsList)
            {
                _iBeaconManager.StartRangingBeaconsInRegion(rangingRegion);
            }
        }
Esempio n. 6
0
        public void OnIBeaconServiceConnect()
        {
            beaconMgr.SetMonitorNotifier(BeaconsMonitorNotifier);

            if (BeaconCreds.BeaconMonitoring == BeaconMonitoring.Ranging)
            {
                foreach (Region beaconRegion in BeaconsRegionsList)
                {
                    beaconMgr.StartMonitoringBeaconsInRegion(beaconRegion);
                }
            }
            else
            {
                beaconMgr.SetRangeNotifier(BeaconsRangeNotifier);
                beaconMgr.StartMonitoringBeaconsInRegion(_regionForProximity);
                beaconMgr.StartRangingBeaconsInRegion(_regionForProximity);
            }
        }
Esempio n. 7
0
                //

                // Handle any pending start/stop requests
                public void OnIBeaconServiceConnect(IBeaconConsumer consumer)
                {
                    // become the listener
                    IBeaconManager.SetMonitorNotifier(this);
                    IBeaconManager.SetRangeNotifier(this);

                    // protect against multiple calls
                    if (IBeaconManagerBound == false)
                    {
                        IBeaconManagerBound = true;

                        //Start Monitoring
                        foreach (BeaconRegion region in PendingStartMonitor)
                        {
                            StartMonitoring(region);
                        }

                        //Stop Monitoring
                        foreach (BeaconRegion region in PendingStopMonitor)
                        {
                            StopMonitoring(region);
                        }

                        //Start Ranging
                        foreach (BeaconRegion region in PendingStartRanging)
                        {
                            StartRangingBeacons(region);
                        }

                        //Stop Ranging
                        foreach (BeaconRegion region in PendingStopRanging)
                        {
                            StopRangingBeacons(region);
                        }

                        // clear lists
                        PendingStartMonitor.Clear( );
                        PendingStopMonitor.Clear( );
                        PendingStartRanging.Clear( );
                        PendingStopRanging.Clear( );
                    }
                }
Esempio n. 8
0
        public void OnIBeaconServiceConnect()
        {
            _iBeaconManager.SetRangeNotifier(_rangeNotifier);

            _iBeaconManager.StartRangingBeaconsInRegion(_rangingRegion);
        }
 public void OnIBeaconServiceConnect()
 {
     beaconMgr.SetRangeNotifier(rangeNotifier);
     beaconMgr.StartRangingBeaconsInRegion(rangingRegion);
 }