Class StandardPurchasingModule
Module for the standard stores covered by Unity; Apple App store, Google Play and more.
Inherited Members
Namespace: UnityEngine.Purchasing
Syntax
public class StandardPurchasingModule : AbstractPurchasingModule, IPurchasingModule, IAndroidStoreSelection, IStoreConfiguration
Fields
k_PackageVersion
Obsolete and inaccurate. Do not use.
Declaration
[Obsolete("Not accurate. Use Version instead.", false)]
public const string k_PackageVersion = "3.0.1"
Field Value
Type | Description |
---|---|
String |
Properties
androidStore
A property that retrieves the AndroidStore
type, if applicabble.
Declaration
[Obsolete("Use StandardPurchasingModule.appStore instead")]
public AndroidStore androidStore { get; }
Property Value
Type | Description |
---|---|
AndroidStore |
Implements
appStore
A property that retrieves the AppStore
type.
Declaration
public AppStore appStore { get; }
Property Value
Type | Description |
---|---|
AppStore |
Implements
useFakeStoreAlways
Whether or not to use the Fake store.
Declaration
public bool useFakeStoreAlways { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
useFakeStoreUIMode
The UI mode for the Fake store, if it's in use.
Declaration
public FakeStoreUIMode useFakeStoreUIMode { get; set; }
Property Value
Type | Description |
---|---|
FakeStoreUIMode |
useMockBillingSystem
Whether or not to use the mock billing system for Universal Windows Platform apps.
Declaration
[Obsolete("Use IMicrosoftConfiguration to toggle use of the Microsoft IAP simulator.")]
public bool useMockBillingSystem { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Version
The version of com.unity.purchasing installed and the app was built using.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Configure()
Configures the StandardPurchasingModule.
Declaration
public override void Configure()
Overrides
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(AndroidStore)
Creates an instance of StandardPurchasingModule or retrieves the existing one, specifying a type of Android store.
Declaration
[Obsolete("Use StandardPurchasingModule.Instance(AppStore) instead")]
public static StandardPurchasingModule Instance(AndroidStore androidStore)
Parameters
Type | Name | Description |
---|---|---|
AndroidStore | androidStore | The type of Android Store with which to create the 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, specifying a type of App store.
Declaration
public static StandardPurchasingModule Instance(AppStore androidStore)
Parameters
Type | Name | Description |
---|---|---|
AppStore | androidStore | The type of Android Store with which to create the instance. |
Returns
Type | Description |
---|---|
StandardPurchasingModule | The existing instance or the one just created. |