protected override void OnDestroy() { base.OnDestroy(); _rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion; _iBeaconManager.StopRangingBeaconsInRegion(_rangingRegion); _iBeaconManager.UnBind(this); }
public void UnBindIBeaconManager(Activity mainActivity) { if (IBeaconManager != null) { IBeaconManager.UnBind(mainActivity as IBeaconConsumer); } }
void CloseApp() { rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion; beaconMgr.StopRangingBeaconsInRegion(rangingRegion); monitorNotifier.EnterRegionComplete -= EnteredRegion; monitorNotifier.ExitRegionComplete -= ExitedRegion; beaconMgr.UnBind(this); base.OnDestroy(); }
protected override void OnDestroy() { base.OnDestroy(); monitorNotifier.EnterRegionComplete -= EnterRegion; monitorNotifier.ExitRegionComplete -= ExitRegion; rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion; beaconManager.StopMonitoringBeaconsInRegion(monitorRegion); beaconManager.StopRangingBeaconsInRegion(rangeRegion); beaconManager.UnBind(this); }
public override void OnDestroy() { if (livecard != null && livecard.IsPublished) { _rangeNotifier.DidRangeBeaconsInRegionComplete -= RangingBeaconsInRegion; _iBeaconManager.StopRangingBeaconsInRegion(_rangingRegion); _iBeaconManager.UnBind(this); livecard.Unpublish(); livecard = null; } base.OnDestroy(); }
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); }
protected override void OnDestroy() { beaconMgr.UnBind(this); base.OnDestroy(); }
protected override void OnDestroy() { base.OnDestroy(); iBeaconManager.UnBind(this); }