暫無描述
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.

AppStore.cs 1.9KB

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