SquareDash/Library/PackageCache/com.unity.purchasing@4.10.0/Runtime/Stores/Android/UDP/UDP.cs
kingjuulian06 0efb85038a Arbeit 2
2023-11-21 22:03:49 +01:00

33 lines
1.0 KiB
C#

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";
}
}
}
}
}