Interface IUDPExtensions
Namespace: UnityEngine.Purchasing
Assembly: UnityEngine.Purchasing.Stores.dll
Syntax
[Obsolete("UDP support will be removed in the next major update of In-App Purchasing. Right now, the UDP SDK will still function normally in tandem with IAP.")]
public interface IUDPExtensions : IStoreExtension
Methods
EnableDebugLog(bool)
Enable debug log for UDP.
Declaration
void EnableDebugLog(bool enable)
Parameters
Type | Name | Description |
---|---|---|
bool | enable | Whether or not the logging is to be enabled. |
GetLastInitializationError()
Return the UDP initialization error.
Declaration
string GetLastInitializationError()
Returns
Type | Description |
---|---|
string | The error as a string |
GetUserInfo()
Some stores return user information after initialization.
Declaration
object GetUserInfo()
Returns
Type | Description |
---|---|
object | UserInfo, which may be null |
RegisterPurchaseDeferredListener(Action<Product>)
Called when a processing a purchase from UDP that is in the "OnPurchasePending" state.
Declaration
void RegisterPurchaseDeferredListener(Action<Product> action)
Parameters
Type | Name | Description |
---|---|---|
Action<Product> | action | Action will be called with the product that is in the "OnPurchasePending" state. |