暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

IUDPExtensions.cs 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. namespace UnityEngine.Purchasing
  3. {
  4. [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.")]
  5. /// <summary>
  6. /// Common interface for all UDP store purchasing extensions.
  7. /// </summary>
  8. public interface IUDPExtensions : IStoreExtension
  9. {
  10. /// <summary>
  11. /// Some stores return user information after initialization.
  12. /// </summary>
  13. /// <returns>UserInfo, which may be null</returns>
  14. object GetUserInfo(); //UDP UserInfo via Reflection
  15. /// <summary>
  16. /// Return the UDP initialization error.
  17. /// </summary>
  18. /// <returns>The error as a string</returns>
  19. string GetLastInitializationError();
  20. /// <summary>
  21. /// Enable debug log for UDP.
  22. /// </summary>
  23. /// <param name="enable"> Whether or not the logging is to be enabled. </param>
  24. void EnableDebugLog(bool enable);
  25. /// <summary>
  26. /// Called when a processing a purchase from UDP that is in the "OnPurchasePending" state.
  27. /// </summary>
  28. /// <param name="action">Action will be called with the product that is in the "OnPurchasePending" state.</param>
  29. void RegisterPurchaseDeferredListener(Action<Product> action);
  30. }
  31. }