No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IAppleConfiguration.cs 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine.Purchasing.Extension;
  4. namespace UnityEngine.Purchasing
  5. {
  6. /// <summary>
  7. /// Access Apple store specific configurations.
  8. /// </summary>
  9. public interface IAppleConfiguration : IStoreConfiguration
  10. {
  11. /// <summary>
  12. /// Read the App Receipt from local storage.
  13. /// Returns null for iOS less than or equal to 6, may also be null on a reinstalling and require refreshing.
  14. /// </summary>
  15. string appReceipt { get; }
  16. /// <summary>
  17. /// Determine if the user can make payments; [SKPaymentQueue canMakePayments].
  18. /// </summary>
  19. bool canMakePayments { get; }
  20. /// <summary>
  21. /// Stores a callback that will be called when
  22. /// the user attempts a promotional purchase
  23. /// (directly from the Apple App Store) on
  24. /// iOS or tvOS.
  25. ///
  26. /// If the callback is set, you must call
  27. /// IAppleExtensions.ContinuePromotionalPurchases()
  28. /// inside it in order to continue the intercepted
  29. /// purchase(s).
  30. /// </summary>
  31. /// <param name="callback"></param>
  32. void SetApplePromotionalPurchaseInterceptorCallback(Action<Product> callback);
  33. /// <summary>
  34. /// Called when entitlements are revoked from Apple.
  35. /// </summary>
  36. /// <param name="callback">Action will be called with the products that were revoked.</param>
  37. void SetEntitlementsRevokedListener(Action<List<Product>> callback);
  38. }
  39. }