Exemple #1
0
 /// <summary>
 /// Shows an interstitial as long as one is loaded
 /// </summary>
 public static void ShowInterstitial()
 {
     EtceteraWindows.RunOnUIThread(() =>
     {
         if (interstitialAd != null)
         {
             interstitialAd.ShowAd();
         }
     });
 }
Exemple #2
0
 public static void ShowVideo()
 {
     EtceteraWindows.RunOnUIThread(() =>
     {
         if (videoAd != null)
         {
             videoAd.ShowAd();
         }
     });
 }
Exemple #3
0
 /// <summary>
 /// Loads listing information and fires completingHandler with the data once loading completes
 ///
 /// </summary>
 /// <param name="completionHandler"/>
 public static void LoadListingInformation(Action <ListingInformation, Exception> onComplete)
 {
     EtceteraWindows.RunOnUIThread(() => LoadListing(onComplete));
 }
Exemple #4
0
 /// <summary>
 /// Requests a purchase of the application. completionHandler gets called with either true or false indicating if
 ///             the app was purchased.
 ///
 /// </summary>
 public static async void RequestProductPurchase(string productId, Action <PurchaseResults, Exception> onComplete)
 {
     EtceteraWindows.RunOnUIThread(() => Purchase(productId, onComplete));
 }
Exemple #5
0
 /// <summary>
 /// Gets the product receipt for the given productId.
 ///
 /// </summary>
 /// <param name="productId"/>
 /// <returns/>
 public static async void GetProductReceipts(List <string> productIds, Action <List <ProductReceipt>, Exception> onComplete)
 {
     EtceteraWindows.RunOnUIThread(() => LoadProductReceipts(productIds, onComplete));
 }