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
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 |
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(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. |