Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
        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;
        }