/// <summary> /// Shows an interstitial as long as one is loaded /// </summary> public static void ShowInterstitial() { EtceteraWindows.RunOnUIThread(() => { if (interstitialAd != null) { interstitialAd.ShowAd(); } }); }
public static void ShowVideo() { EtceteraWindows.RunOnUIThread(() => { if (videoAd != null) { videoAd.ShowAd(); } }); }
/// <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)); }
/// <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)); }
/// <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)); }