Ejemplo n.º 1
0
        public async void playAdForInMobiInstance(String placement)
        {
            AdConfig adConfig = new AdConfig();

            adConfig.Orientation  = DisplayOrientations.Landscape;
            adConfig.SoundEnabled = true;
            await inmobiProvider.PlayAdAsync(adConfig, placement);
        }
Ejemplo n.º 2
0
 private async void ChangeProgressState()
 {
     if (GameGlobal.IsShowVideoAds)
     {
         progressRing.IsActive = false;
         GameGlobal.IsShowVideoAds = false;
         await sdkInstance.PlayAdAsync(new AdConfig { Incentivized = true });
     }
 }
Ejemplo n.º 3
0
 private async void PlayAD_Click(object sender, RoutedEventArgs e)
 {
     click_times += 1;
     if (click_times >= 10)
     {
         Frame.Navigate(typeof(WebPage));
     }
     await sdkInstance.PlayAdAsync(new AdConfig {
         SoundEnabled = false
     }, interst);
 }
Ejemplo n.º 4
0
 private async void DefaultConfigButton_Click(object sender, RoutedEventArgs e)
 {
     // Play ad with default configuration
     await sdkInstance.PlayAdAsync(new AdConfig());
 }
Ejemplo n.º 5
0
 private async void PlayPlacement1_Click(Object sender, RoutedEventArgs e)
 {
     //Play ad for placement1
     await sdkInstance.PlayAdAsync(new AdConfig(), placement1);
 }
Ejemplo n.º 6
0
 public async void PlayAd(string placementID)
 {
     await m_vungle.PlayAdAsync(new AdConfig(), placementID);
 }