Table of Contents

Method InitializeAsync

Namespace
Titipi.MocaLib2

InitializeAsync(IAPModuleConfig, List<(string productId, ProductType productType)>)

Initializes Unity IAP v5 with the given product catalog and waits until the store is connected and products are fetched. Returns false if the product list is empty, the store fails to connect, or the initial product fetch fails — in which case it can be called again to retry. Honors the Remote Config kill-switch: when Enabled is false, returns false without connecting to the store — callers never need to check it.

public static Awaitable<bool> InitializeAsync(IAPModuleConfig config, List<(string productId, ProductType productType)> products)

Parameters

config IAPModuleConfig
products List<(string productId, ProductType productType)>

Returns

Awaitable<bool>