示例#1
0
 public async Task RequestAsync(InappPurchaseItem item)
 {
     try
     {
         #if DEBUG
         await CurrentAppSimulator.RequestProductPurchaseAsync(item.Id).AsTask().ConfigureAwait(false);
         #else
         await CurrentApp.RequestProductPurchaseAsync(item.Id).AsTask().ConfigureAwait(false);
         #endif
     }
     catch (Exception)
     {
     }
 }
示例#2
0
 public Task RequestPurchaseAsync(InappPurchaseItem item) => InappPurchase.RequestAsync(item);