public override void ViewDidLoad()
        {
            this.locationManager = new CLLocationManager();
            locationManager.StartMonitoringSignificantLocationChanges();
            tapitAd.WillLoadAd += HandleWillLoadAd;

            tapitAd.DidFinish += HandleDidFinish;

            tapitAd.DidLoadAd += HandleDidLoadAd;
            tapitAd.FailedToReceiveAd += HandleFailedToReceiveAd;
            NSDictionary parameters = NSDictionary.FromObjectAndKey( new NSString("test"),new NSString("mode"));
            request = TapItRequest.FromZone(AppDelegate.ZoneId,parameters);
            if(locationManager.Location != null)
                request.UpdateLocation(locationManager.Location);
            tapitAd.StartServingAds(request);

            button.TouchDown += HandleTouchDown;
        }
Exemplo n.º 2
0
        public override void ViewDidLoad()
        {
            this.locationManager = new CLLocationManager();
            locationManager.StartMonitoringSignificantLocationChanges();
            tapitAd.WillLoadAd += HandleWillLoadAd;

            tapitAd.DidFinish += HandleDidFinish;

            tapitAd.DidLoadAd         += HandleDidLoadAd;
            tapitAd.FailedToReceiveAd += HandleFailedToReceiveAd;
            NSDictionary parameters = NSDictionary.FromObjectAndKey(new NSString("test"), new NSString("mode"));

            request = TapItRequest.FromZone(AppDelegate.ZoneId, parameters);
            if (locationManager.Location != null)
            {
                request.UpdateLocation(locationManager.Location);
            }
            tapitAd.StartServingAds(request);

            button.TouchDown += HandleTouchDown;
        }