Class StandardPurchasingModule
Module for the standard stores covered by Unity; Apple App store, Google Play and more.
Inherited Members
Namespace: UnityEngine.Purchasing
Assembly: Unity.Purchasing.dll
Syntax
[Obsolete("This API is deprecated. Please upgrade to the new APIs introduced in IAP v5. For more information, visit the IAP manual: https://docs.unity.com/ugs/en-us/manual/iap/manual/upgrade-to-iap-v5", false)]
public class StandardPurchasingModule
Properties
Version
The version of com.unity.purchasing installed and the app was built using.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
string |
appStore
A property that retrieves the AppStore
type.
Declaration
public AppStore appStore { get; }
Property Value
Type | Description |
---|---|
AppStore |
useFakeStoreAlways
Whether or not to use the Fake store. Currently non-functional.
Declaration
public bool useFakeStoreAlways { get; set; }
Property Value
Type | Description |
---|---|
bool |
useFakeStoreUIMode
The UI mode for the Fake store, if it's in use. Currently non-functional. FakeStore will use StandardUser UI Mode regardless of value.
Declaration
public FakeStoreUIMode useFakeStoreUIMode { get; set; }
Property Value
Type | Description |
---|---|
FakeStoreUIMode |
Methods
Instance()
Creates an instance of StandardPurchasingModule or retrieves the existing one.
Declaration
public static StandardPurchasingModule Instance()
Returns
Type | Description |
---|---|
StandardPurchasingModule | The existing instance or the one just created. |
Instance(AppStore)
Creates an instance of StandardPurchasingModule or retrieves the existing one.
For backwards compatibility only. Returns same results as calling Instance()
.
Declaration
public static StandardPurchasingModule Instance(AppStore androidStore)
Parameters
Type | Name | Description |
---|---|---|
AppStore | androidStore | The Android store type. This parameter is ignored and maintained only for backwards compatibility. |
Returns
Type | Description |
---|---|
StandardPurchasingModule | The existing instance or the one just created. |