public override void OnCreate() { base.OnCreate(); _iBeaconManager = IBeaconManager.GetInstanceForApplication(this); _iBeaconManager.SetForegroundScanPeriod(2000); _iBeaconManager.SetForegroundBetweenScanPeriod(2500); _rangeNotifier = new RangeNotifier(); _rangingRegion = new Region(monkeyId, UUID, null, null); _iBeaconManager.Bind(this); _rangeNotifier.DidRangeBeaconsInRegionComplete += RangingBeaconsInRegion; }
public override void OnCreate() { base.OnCreate (); _iBeaconManager = IBeaconManager.GetInstanceForApplication (this); _iBeaconManager.SetForegroundScanPeriod (2000); _iBeaconManager.SetForegroundBetweenScanPeriod (2500); _rangeNotifier = new RangeNotifier (); _rangingRegion = new Region (monkeyId, UUID, null, null); _iBeaconManager.Bind (this); _rangeNotifier.DidRangeBeaconsInRegionComplete += RangingBeaconsInRegion; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); _view = FindViewById <RelativeLayout>(Resource.Id.findTheMonkeyView); _text = FindViewById <TextView>(Resource.Id.monkeyStatusLabel); ////// _iBeaconManager = IBeaconManager.GetInstanceForApplication(this); _iBeaconManager.SetForegroundScanPeriod(2000); _iBeaconManager.SetForegroundBetweenScanPeriod(2500); _rangeNotifier = new RangeNotifier(); _rangingRegion = new Region(monkeyId, UUID, null, null); _iBeaconManager.Bind(this); _rangeNotifier.DidRangeBeaconsInRegionComplete += RangingBeaconsInRegion; }