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.

UDP.cs 1.0KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. namespace UnityEngine.Purchasing
  3. {
  4. [Obsolete("UDP support will be removed in the next major update of In-App Purchasing. Right now, the UDP SDK will still function normally in tandem with IAP.")]
  5. /// <summary>
  6. /// Class containing store information for Unity Distribution Portal builds.
  7. /// </summary>
  8. public class UDP
  9. {
  10. // Unity Distribution Portal (UDP) may target to various store,
  11. // e.g. Xiaomi, MooStore, etc. So the <code>Name</code> should
  12. // be more specific in this case.
  13. /// <summary>
  14. /// The name of the specific store service under UDP. Defaults to "UDP" if not determined from the UDP package.
  15. /// </summary>
  16. public static string Name
  17. {
  18. get
  19. {
  20. try
  21. {
  22. return StoreServiceInterface.GetName() ?? "UDP";
  23. }
  24. catch (Exception)
  25. {
  26. return "UDP";
  27. }
  28. }
  29. }
  30. }
  31. }