AppStore.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. namespace UnityEngine.Purchasing
  2. {
  3. /// <summary>
  4. /// The type of Native App store being used.
  5. /// </summary>
  6. public enum AppStore
  7. {
  8. /// <summary>
  9. /// No store specified.
  10. /// </summary>
  11. NotSpecified,
  12. /// <summary>
  13. /// GooglePlay Store.
  14. /// </summary>
  15. GooglePlay, //<= Map to AndroidStore. First Android store. In AppStoreMeta.
  16. /// <summary>
  17. /// Amazon App Store.
  18. /// </summary>
  19. AmazonAppStore, //
  20. /// <summary>
  21. /// Unity Distribution Portal, which supports a set of stores internally.
  22. /// </summary>
  23. UDP, // Last Android store. Also in AppStoreMeta.
  24. /// <summary>
  25. /// MacOS App Store.
  26. /// </summary>
  27. MacAppStore,
  28. /// <summary>
  29. /// iOS or tvOS App Stores.
  30. /// </summary>
  31. AppleAppStore,
  32. /// <summary>
  33. /// Universal Windows Platform's store.
  34. /// </summary>
  35. WinRT,
  36. /// <summary>
  37. /// A fake store used for testing and Play-In-Editor.
  38. /// </summary>
  39. fake
  40. }
  41. // Note these must be synchronized with constants in the AndroidStore enum.
  42. /// <summary>
  43. /// A meta enum to bookend the app Stores for Android. Mapped from <c>AppStore</c>'s values.
  44. /// Is distinct from <c>AppStore</c> to avoid non-unique Enum.Parse and Enum.ToString lookup conflicts.
  45. /// </summary>
  46. public enum AppStoreMeta
  47. {
  48. /// <summary>
  49. /// The first Android App Store.
  50. /// </summary>
  51. AndroidStoreStart = AppStore.GooglePlay,
  52. /// <summary>
  53. /// The last Android App Store.
  54. /// </summary>
  55. AndroidStoreEnd = AppStore.UDP
  56. }
  57. }