示例#1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.Title      = "Nearable: " + Nearable.Identifier;
            nearableManager = new NearableManager();
        }
示例#2
0
        async public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TableView.WeakDataSource = this;
            TableView.WeakDelegate   = this;

            manager = new NearableManager();
        }
		async public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			TableView.WeakDataSource = this;
			TableView.WeakDelegate = this;

			manager = new NearableManager ();



		}
        public async override void ViewDidLoad()
        {
            base.ViewDidLoad();
            this.Title      = "Cloud Nearables";
            nearableManager = new NearableManager();

            try
            {
                //nearables = await nearableManager.FetchEstimoteNearablesAsync ();
                TableView.ReloadData();
            }
            catch (Exception ex) {
                new UIAlertView("Error", "Unable to fetch cloud nearable, ensure you have set Config in AppDelegate", null, "OK").Show();
            }
        }
        async public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TableView.WeakDataSource = this;
            TableView.WeakDelegate   = this;

            manager = new NearableManager();

            manager.RangedNearables += (sender, e) =>
            {
                this.nearables = e.Nearables;
                TableView.ReloadData();
            };
        }
		public async override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			this.Title = "Cloud Nearables";
			nearableManager = new NearableManager ();
		
			try
			{
				//nearables = await nearableManager.FetchEstimoteNearablesAsync ();
				TableView.ReloadData();
			}
			catch(Exception ex) {
				new UIAlertView ("Error", "Unable to fetch cloud nearable, ensure you have set Config in AppDelegate", null, "OK").Show ();
			}
		}
		async public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			TableView.WeakDataSource = this;
			TableView.WeakDelegate = this;

			manager = new NearableManager ();

            manager.RangedNearables += (sender, e) => 
            {
                this.nearables = e.Nearables;
                TableView.ReloadData ();
            };

		}
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            manager = new NearableManager();

            manager.RangedNearables += (sender, e) =>
            {
                //Create Alert
                var okAlertController = UIAlertController.Create("Nearables Found", "Just found: " + e.Nearables.Length + " nearables.", UIAlertControllerStyle.Alert);
                //Add Action
                okAlertController.AddAction(UIAlertAction.Create("Ok", UIAlertActionStyle.Default, null));
                // Present Alert
                PresentViewController(okAlertController, true, null);
            };
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.Title      = "Nearable: " + Nearable.Identifier;
            nearableManager = new NearableManager();

            nearableManager.RangedNearable += (sender, e) => {
                Nearable = e.Nearable;
                UpdateStats();
            };

            nearableManager.EnteredIdentifierRegion += (sender, e) =>
            {
                if (enterSwitch.On)
                {
                    LabelNotification.Text = "Enter region: " + e.Identifier;

                    var notification = new UILocalNotification();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
                }
            };

            nearableManager.ExitedIdentifierRegion += (sender, e) =>
            {
                if (exitSwitch.On)
                {
                    LabelNotification.Text = "Exit region: " + e.Identifier;
                    var notification = new UILocalNotification();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
                }
            };
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            this.Title = "Nearable: " + Nearable.Identifier;
            nearableManager = new NearableManager ();

            nearableManager.RangedNearable += (sender, e) => {
                Nearable = e.Nearable;
                UpdateStats ();
            };

            nearableManager.EnteredIdentifierRegion += (sender, e) =>
            {
                if (enterSwitch.On) {
                    LabelNotification.Text = "Enter region: " + e.Identifier;

                    var notification = new UILocalNotification ();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow (notification);
                }
            };

            nearableManager.ExitedIdentifierRegion += (sender, e) =>
            {
                if (exitSwitch.On) {
                    LabelNotification.Text = "Exit region: " + e.Identifier;
                    var notification = new UILocalNotification ();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow (notification);
                }
            };
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            this.Title = "Nearable: " + Nearable.Identifier;
            nearableManager = new NearableManager ();
        }
 public RootViewController(IntPtr handle) : base(handle)
 {
     _nearableManager = new NearableManager();
 }
 public RootViewController(IntPtr handle)
     : base(handle)
 {
     _nearableManager = new NearableManager();
 }