Exemple #1
0
 private async Task LoadAdsAsync()
 {
     cancellationTokenSource = new CancellationTokenSource();
     var adView = FindViewById <AdView>(Resource.Id.adView_finished_goals);
     var loader = new AsyncLoader(adView, TaskScheduler.FromCurrentSynchronizationContext());
     await loader.LoadAdViewAsync(cancellationTokenSource.Token);
 }
Exemple #2
0
        private void LoadAds()
        {
            adView = FindViewById <AdView>(Resource.Id.adView_main);
            var loader = new AsyncLoader(adView, TaskScheduler.FromCurrentSynchronizationContext());

            loader.LoadAdViewAsync(CancellationToken.None);
        }