Method SetFetchPurchasesAtInitialize
SetFetchPurchasesAtInitialize(bool)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Set behavior at initialization of fetching purchase data. Use before calling UnityPurchasing.Initialize.Initialize
.
Disable to prevent IStoreListener.ProcessPurchase.ProcessPurchase
from automatically returning entitled purchases at initialization.
This allows greater control when tracking the origin of purchases.
Then use IGooglePlayStoreExtensions.RestoreTransactions.RestoreTransactions
to fetch as-yet unseen entitled purchases.
Default is true
.
Declaration
public void SetFetchPurchasesAtInitialize(bool enable)
Parameters
Type | Name | Description |
---|---|---|
bool | enable |