Class FakeGooglePlayStoreExtensions
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Access GooglePlay store specific functionality.
Namespace: UnityEngine.Purchasing
Syntax
public class FakeGooglePlayStoreExtensions : IGooglePlayStoreExtensions, IStoreExtension
Methods
ConfirmSubscriptionPriceChange(String, Action<Boolean>)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Initiate a flow to confirm the change of price for an item subscribed by the user.
Declaration
public void ConfirmSubscriptionPriceChange(string productId, Action<bool> callback)
Parameters
Type | Name | Description |
---|---|---|
String | productId | Product id |
Action<Boolean> | callback | Price changed event finished successfully |
Implements
EndConnection()
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Disconnects the implementation from the underlying Google Play Billing Library. Use for diagnostic or resource allocation purposes.
Declaration
public void EndConnection()
FinishAdditionalTransaction(String, String)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Executes the same code as GooglePlayStore.FinishTransaction
.
Declaration
public void FinishAdditionalTransaction(string productId, string transactionId)
Parameters
Type | Name | Description |
---|---|---|
String | productId | Products id / sku |
String | transactionId | Products transaction id |
Implements
GetProductJSONDictionary()
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
GetProductJSONDictionary is deprecated, nothing will be returns and no code will be executed. Will be removed soon. Use the GoogleProductMetadata
of product.metadata.GetGoogleProductMetadata()
from IStoreController.products
Declaration
public Dictionary<string, string> GetProductJSONDictionary()
Returns
Type | Description |
---|---|
Dictionary<String, String> | null |
Implements
IsOwned(Product)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
IsOwned is deprecated, false will be returned by default and no code will be executed. Will be removed soon.
Declaration
public bool IsOwned(Product p)
Parameters
Type | Name | Description |
---|---|---|
Product | p | deprecated |
Returns
Type | Description |
---|---|
Boolean | false |
Implements
RestoreTransactions(Action<Boolean>)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Async call to the google store to queryPurchases
using all the different support sku types.
Declaration
public void RestoreTransactions(Action<bool> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<Boolean> | callback | Will be called as often as many purchases the queryPurchases finds. (the IStoreCallback will be called as well) |
Implements
SetDeferredProrationUpgradeDowngradeSubscriptionListener(Action<Product>)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Set listener for deferred subscription change events. Deferred subscription changes only take effect at the renewal cycle and no transaction is done immediately, therefore there is no receipt nor token.
Declaration
public void SetDeferredProrationUpgradeDowngradeSubscriptionListener(Action<Product> action)
Parameters
Type | Name | Description |
---|---|---|
Action<Product> | action | Deferred subscription change event. No payout is granted here. Instead, notify the user that the subscription change will take effect at the next renewal cycle. |
Implements
SetDeferredPurchaseListener(Action<Product>)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Set listener for deferred purchasing events. Deferred purchasing is enabled by default and cannot be changed.
Declaration
public void SetDeferredPurchaseListener(Action<Product> action)
Parameters
Type | Name | Description |
---|---|---|
Action<Product> | action | Deferred purchasing successful events. Do not grant the item here. Instead, record the purchase and remind the user to complete the transaction in the Play Store. |
Implements
SetLogLevel(Int32)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
SetLogLevel is deprecated, no code will be executed. Will be removed soon.
Declaration
public void SetLogLevel(int level)
Parameters
Type | Name | Description |
---|---|---|
Int32 | level | deprecated |
Implements
SetObfuscatedAccountId(String)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Optional obfuscation string to detect irregular activities when making a purchase. For more information please visit https://developer.android.com/google/play/billing/security
Declaration
public void SetObfuscatedAccountId(string accountId)
Parameters
Type | Name | Description |
---|---|---|
String | accountId | The obfuscated account id |
Implements
SetObfuscatedProfileId(String)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Optional obfuscation string to detect irregular activities when making a purchase For more information please visit https://developer.android.com/google/play/billing/security
Declaration
public void SetObfuscatedProfileId(string profileId)
Parameters
Type | Name | Description |
---|---|---|
String | profileId | The obfuscated profile id |
Implements
UpgradeDowngradeSubscription(String, String)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Upgrade or downgrade subscriptions, with proration mode IMMEDIATE_WITHOUT_PRORATION
by default
See more
Declaration
public void UpgradeDowngradeSubscription(string oldSku, string newSku)
Parameters
Type | Name | Description |
---|---|---|
String | oldSku | current subscription |
String | newSku | new subscription to subscribe |
Implements
UpgradeDowngradeSubscription(String, String, Int32)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Upgrade or downgrade subscriptions
Declaration
public void UpgradeDowngradeSubscription(string oldSku, string newSku, int desiredProrationMode)
Parameters
Type | Name | Description |
---|---|---|
String | oldSku | current subscription |
String | newSku | new subscription to subscribe |
Int32 | desiredProrationMode | Specifies the mode of proration. See more |