1234567891011121314151617181920212223242526272829303132333435 |
- 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);
- }
- }
|