No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IPurchasingBinder.cs 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. namespace UnityEngine.Purchasing.Extension
  4. {
  5. /// <summary>
  6. /// Configures Unity Purchasing with one or more
  7. /// store implementations.
  8. /// </summary>
  9. public interface IPurchasingBinder
  10. {
  11. /// <summary>
  12. /// Informs Unity Purchasing that a store implementation exists,
  13. /// specifying its name.
  14. ///
  15. /// Modules can pass null IStore instances when running on platforms
  16. /// they do not support.
  17. /// </summary>
  18. /// <param name="name"> The name of the store </param>
  19. /// <param name="store"> The instance of the store </param>
  20. void RegisterStore(string name, IStore store);
  21. /// <summary>
  22. /// Informs Unity Purchasing that a store extension is available.
  23. /// </summary>
  24. /// <typeparam name="T"> Implementation of <c>IStoreExtension</c>. </typeparam>
  25. /// <param name="instance"> The instance of the store extension. </param>
  26. void RegisterExtension<T>(T instance) where T : IStoreExtension;
  27. /// <summary>
  28. /// Informs Unity Purchasing that extended Configuration is available.
  29. /// </summary>
  30. /// <typeparam name="T"> Implementation of <c>IStoreConfiguration</c>. </typeparam>
  31. /// <param name="instance"> The instance of the store configuration. </param>
  32. void RegisterConfiguration<T>(T instance) where T : IStoreConfiguration;
  33. /// <summary>
  34. /// Informs Unity Purchasing about a catalog provider which might replace or add products at runtime.
  35. /// </summary>
  36. /// <param name="provider"> The provider of the catalog containing the products </param>
  37. void SetCatalogProvider(ICatalogProvider provider);
  38. /// <summary>
  39. /// Informs Unity Purchasing about a catalog provider function, which might replace or add products at runtime.
  40. /// This is an alternative to the SetCatalogProvider API for setting a catalog provider that does not implement
  41. /// the ICatalogProvider interface.
  42. /// </summary>
  43. /// <param name="func"> The action that executes the addition of modificiation of products </param>
  44. void SetCatalogProviderFunction(Action<Action<HashSet<ProductDefinition>>> func);
  45. }
  46. }