예제 #1
0
 protected override void OnDestroy()
 {
     base.OnDestroy();
     _rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion;
     _iBeaconManager.StopRangingBeaconsInRegion(_rangingRegion);
     _iBeaconManager.UnBind(this);
 }
예제 #2
0
 public void UnBindIBeaconManager(Activity mainActivity)
 {
     if (IBeaconManager != null)
     {
         IBeaconManager.UnBind(mainActivity as IBeaconConsumer);
     }
 }
예제 #3
0
        void CloseApp()
        {
            rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion;
            beaconMgr.StopRangingBeaconsInRegion(rangingRegion);
            monitorNotifier.EnterRegionComplete -= EnteredRegion;
            monitorNotifier.ExitRegionComplete  -= ExitedRegion;

            beaconMgr.UnBind(this);
            base.OnDestroy();
        }
예제 #4
0
 protected override void OnDestroy()
 {
     base.OnDestroy();
     monitorNotifier.EnterRegionComplete           -= EnterRegion;
     monitorNotifier.ExitRegionComplete            -= ExitRegion;
     rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion;
     beaconManager.StopMonitoringBeaconsInRegion(monitorRegion);
     beaconManager.StopRangingBeaconsInRegion(rangeRegion);
     beaconManager.UnBind(this);
 }
예제 #5
0
        public override void OnDestroy()
        {
            if (livecard != null && livecard.IsPublished)
            {
                _rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion;

                _iBeaconManager.StopRangingBeaconsInRegion(_rangingRegion);
                _iBeaconManager.UnBind(this);

                livecard.Unpublish();
                livecard = null;
            }
            base.OnDestroy();
        }
예제 #6
0
        protected override void OnDestroy()
        {
            base.OnDestroy();

            _monitorNotifier.EnterRegionComplete -= EnteredRegion;
            _monitorNotifier.ExitRegionComplete  -= ExitedRegion;

            _rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion;

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

            foreach (var rangingRegion in _rangingRegionsList)
            {
                _iBeaconManager.StopRangingBeaconsInRegion(rangingRegion);
            }
            _iBeaconManager.UnBind(this);
        }
예제 #7
0
        protected override void OnDestroy()
        {
            beaconMgr.UnBind(this);

            base.OnDestroy();
        }
예제 #8
0
 protected override void OnDestroy()
 {
     base.OnDestroy();
     iBeaconManager.UnBind(this);
 }