Class StoreCallbackExtensionMethods
This class is an extension class on IStoreCallback to add the functionality to FindProductById
Namespace: UnityEngine.Purchasing
Syntax
public static class StoreCallbackExtensionMethods
Methods
FindProductById(IStoreCallback, String)
Find a product by it's product ID or StoreSpecificID
Declaration
public static Product FindProductById(this IStoreCallback storeCallback, string sku)
Parameters
Type | Name | Description |
---|---|---|
IStoreCallback | storeCallback | The StoreCallback to extend |
String | sku | The ID to search |
Returns
Type | Description |
---|---|
Product | Returns the product with the ID or null |