1234567891011121314151617181920212223242526272829303132 |
- using System;
-
- namespace UnityEngine.Purchasing
- {
- [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.")]
- /// <summary>
- /// Class containing store information for Unity Distribution Portal builds.
- /// </summary>
- public class UDP
- {
- // Unity Distribution Portal (UDP) may target to various store,
- // e.g. Xiaomi, MooStore, etc. So the <code>Name</code> should
- // be more specific in this case.
- /// <summary>
- /// The name of the specific store service under UDP. Defaults to "UDP" if not determined from the UDP package.
- /// </summary>
- public static string Name
- {
- get
- {
- try
- {
- return StoreServiceInterface.GetName() ?? "UDP";
- }
- catch (Exception)
- {
- return "UDP";
- }
- }
- }
- }
- }
|