35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using System;
|
|
|
|
namespace UnityEngine.Purchasing
|
|
{
|
|
/// <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);
|
|
}
|
|
}
|