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

36 lines
1.3 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>
/// Common interface for all UDP store purchasing extensions.
/// </summary>
public interface IUDPExtensions : IStoreExtension
{
/// <summary>
/// Some stores return user information after initialization.
/// </summary>
/// <returns>UserInfo, which may be null</returns>
object GetUserInfo(); //UDP UserInfo via Reflection
/// <summary>
/// Return the UDP initialization error.
/// </summary>
/// <returns>The error as a string</returns>
string GetLastInitializationError();
/// <summary>
/// Enable debug log for UDP.
/// </summary>
/// <param name="enable"> Whether or not the logging is to be enabled. </param>
void EnableDebugLog(bool enable);
/// <summary>
/// Called when a processing a purchase from UDP that is in the "OnPurchasePending" state.
/// </summary>
/// <param name="action">Action will be called with the product that is in the "OnPurchasePending" state.</param>
void RegisterPurchaseDeferredListener(Action<Product> action);
}
}