コード例 #1
0
        void InitBeaconService()
        {
            var bs = new BeaconService ();
            bs.StartService ();

            //			BeaconManager.Instance.BeaconsUpdated += beaconList => {
            //				Update displays here
            //				contentTableView.ReloadData();
            // 			};
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            startTourButton.Hidden = true;
            startTourButton.TouchUpInside += (sender, e) => Submit();

            var interests = InterestDAO.GetInterestsForLocation (CurrentUser.Instance.Location);

            var lastY = 0f;
            foreach (var interest in interests)
            {
                var interestButton =  CreateInterestButton (interest, lastY);
                interestsScrollView.Add (interestButton);
                lastY += interestButton.Frame.Height + PADDING_HEIGHT;
            }

            var bs = new BeaconService ();
            bs.StartService ();
        }