lib_unity_purchase/Runtime/Purchasing/Extension/ICatalogProvider.cs

19 lines
580 B
C#
Raw Normal View History

2024-01-29 18:49:33 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
namespace UnityEngine.Purchasing.Extension
{
/// <summary>
/// Abstract Catalog Provider, facilitating the retrieval of a catalog's products.
/// </summary>
public interface ICatalogProvider
{
/// <summary>
/// Fetch all the products in the catalog, asynchronously.
/// </summary>
/// <param name="callback"> Event containing the set of products upon completion. </param>
void FetchProducts(Action<HashSet<ProductDefinition>> callback);
}
}