Class FakeUDPExtension
Mock implementation of the interface for UDP purchasing extensions.
Inherited Members
Namespace: UnityEngine.Purchasing
Syntax
public class FakeUDPExtension : IUDPExtensions, IStoreExtension
Methods
EnableDebugLog(Boolean)
Enable debug log for UDP.
Declaration
public void EnableDebugLog(bool enable)
Parameters
Type | Name | Description |
---|---|---|
Boolean | enable | Whether or not the logging is to be enabled. |
Implements
GetLastInitializationError()
Return the UDP initialization error.
Declaration
public string GetLastInitializationError()
Returns
Type | Description |
---|---|
String | The error as a string. |
Implements
GetLastPurchaseError()
Gets the last purchase error.
Declaration
public string GetLastPurchaseError()
Returns
Type | Description |
---|---|
String | The error as a string. |
GetUserInfo()
Some stores return user information after initialization.
Declaration
public object GetUserInfo()
Returns
Type | Description |
---|---|
Object | UserInfo, which may be null |
Implements
RegisterPurchaseDeferredListener(Action<Product>)
Called when a processing a purchase from UDP that is in the "OnPurchasePending" state.
Declaration
public 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. |