using System; namespace UnityEngine.Purchasing { /// /// Common interface for all UDP store purchasing extensions. /// public interface IUDPExtensions : IStoreExtension { /// /// Some stores return user information after initialization. /// /// UserInfo, which may be null object GetUserInfo(); //UDP UserInfo via Reflection /// /// Return the UDP initialization error. /// /// The error as a string string GetLastInitializationError(); /// /// Enable debug log for UDP. /// /// Whether or not the logging is to be enabled. void EnableDebugLog(bool enable); /// /// Called when a processing a purchase from UDP that is in the "OnPurchasePending" state. /// /// Action will be called with the product that is in the "OnPurchasePending" state. void RegisterPurchaseDeferredListener(Action action); } }