Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
bool isReady = Enhance.IsInterstitialReady();
2) Show the ad:
Enhance.ShowInterstitialAd();
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
boolean isReady = Enhance.isInterstitialReady();
2) Show the ad:
Enhance.showInterstitialAd();
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
bool isInterstitialReady = [Enhance isInterstitialReady];
2) Show the ad:
[Enhance showInterstitial];
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
var isReady:Boolean = Enhance.isInterstitialReady();
2) Show the ad:
Enhance.showInterstitialAd();
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
var isReady:Bool = Enhance.isInterstitialReady();
2) Show the ad:
Enhance.showInterstitialAd();
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
is_ready = enhance.isInterstitialReady()
2) Show the ad:
enhance.showInterstitial()
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Actions
Try to show an interstitial ad.
2) Conditions
Triggered when Enhance failed to show the ad (e.g. received no fill error from the ad network).
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
Enhance.isInterstitialReady(isReadyCallback);
2) Show the ad:
Enhance.showInterstitialAd();
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Action Blocks
Show interstitial ad if any is available.
2) Normal Blocks
Check whether an interstitial ad is available or not. Returns boolean.
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
var isReady : Bool = Enhance.isInterstitialReady(placement: placement)
^^^^^^^^^
String
2) Show the ad:
Enhance.showInterstitialAd(placement: placement)
^^^^^^^^^
String
Note:
Interstitial ads will automatically interrupt the flow of your application until the user completes interaction with the ad.
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
Actions
Show interstitial ad
Try to show an interstitial ad.
Conditions
On interstitial ad failed
Triggered when Enhance failed to show the ad (e.g. received no fill error from the ad network).
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
bool isReady = Enhance.IsInterstitialReady();
2) Show the ad:
Enhance.ShowInterstitialAd();
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
1) Check whether any ad is available:
IsInterstitialReady
2) Show the ad:
ShowInterstitialAd
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
bool isReady = Enhance.IsRewardedAdReady();
2) Show the ad:
Enhance.ShowRewardedAd (Enhance.REWARDED_PLACEMENT_NEUTRAL, OnRewardGranted, OnRewardDeclined, OnRewardUnavailable);
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
boolean isReady = Enhance.isRewardedAdReady();
2) Set callbacks:
final RewardCallback rewardCallback = new RewardCallback() {
@Override
public void onRewardGranted(int rewardValue, RewardType rewardType)
{ }
@Override
public void onRewardDeclined()
{ }
@Override
public void onRewardUnavailable()
{ }
};
3) Show the ad:
Enhance.showRewardedAd(rewardCallback);
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
bool isRewardedAdReady = [Enhance isRewardedAdReady];
2) Show the ad:
[Enhance showRewardedAd:self];
3) Implement RewardedDelegate:
-(void)onRewardGranted:(int)rewardValue rewardType:(RewardType)rewardType
{ }
-(void)onRewardDeclined
{ }
-(void)onRewardUnavailable
{ }
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
var isReady:Boolean = Enhance.isRewardedAdReady();
2) Show the ad:
Enhance.showRewardedAd(onRewardGranted, onRewardDeclined, onRewardUnavailable);
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
var isReady:Bool = Enhance.isRewardedAdReady();
3) Show the ad:
Enhance.showRewardedAd(onRewardGranted, onRewardDeclined, onRewardUnavailable);
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
is_ready = enhance.isRewardedAdReady()
2) Show the ad:
enhance.showRewardedAd(on_reward_granted, on_reward_declined, on_reward_unavailable)
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Actions
Try to show a rewarded ad.
2) Conditions
Triggered when Enhance failed to show the ad (e.g. received no fill error from the ad network).
Triggered when the reward was granted to the user. Use expressions to fetch reward informations.
Triggered when the reward was declined by the user.
Triggered when the reward is unavailable.
3) Expressions
Enhance.LastRewardType
Type of the latest granted reward. Returns "item" or "coins".
Enhance.LastRewardValue
Value of the latest granted reward. Returns number value.
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
Enhance.isRewardedAdReady(isReadyCallback);
2) Show the ad
Enhance.showRewardedAd(onRewardGranted, onRewardDeclined, onRewardUnavailable);
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Action Blocks
Show rewarded ad if any is available.
2) Normal Blocks
Check whether a rewarded ad is available or not. Returns boolean.
Access type of the last reward. This will return "ITEM" or "COINS".
Access value of the last reward. This will return 0 if the reward type was "ITEM".
You can use this block to use "ITEM" and "COINS" strings without entering them manually.
3) Wrapper Blocks
Define actions which are triggered after the reward is granted to the user. You can use [last reward type] and [last reward value] together with this block.
Define actions which are triggered after the reward is declined by the user.
Define actions which are triggered after the reward is unavailable.
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
var isReady : Bool = Enhance.isRewardedAdReady(placement: placement)
^^^^^^^^^
(optional) String
2) Implement RewardDelegate
func onRewardGranted(_ rewardValue: CInt, rewardType: RewardType) {
writeLog(message: "Reward granted")
}
func onRewardDeclined() {
writeLog(message: "Reward declined")
}
func onRewardUnavailable() {
writeLog(message: "Reward unavailable")
}
3) Show the ad:
Enhance.showRewardedAd(placement: placement, delegate: self as RewardDelegate)
^^^^^^^^^
(optional) String
Placement options:
REWARDED_PLACEMENT_NEUTRAL (The ad is neutral)
REWARDED_PLACEMENT_SUCCESS (The ad is displayed after success, e.g. level completion)
REWARDED_PLACEMENT_HELPER (The ad is viewed in return for a help, e.g. health bonus)
Note:
Rewarded ads will automatically interrupt the flow of your application until the user completes interaction with the ad.
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
Actions
Show rewarded ad
Try to show a rewarded ad.
Conditions
On rewarded ad failed
Triggered when Enhance failed to show the ad (e.g. received no fill error from the ad network).
On reward granted
Triggered when the reward is granted to the user. Use expressions to fetch the reward data.
On reward declined
Triggered when the reward is declined by the user.
On reward unavailable
Triggered when the reward is unavailable.
Expressions
Enhance.LastRewardType
Type of the latest granted reward. Returns "item" or "coins".
Enhance.LastRewardValue
Value of the latest granted reward. Returns number.
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
bool isReady = Enhance.IsRewardedAdReady();
2) Show the ad:
Enhance.ShowRewardedAd(Action OnRewardGranted, Action OnRewardDeclined, Action OnRewardUnavailable);
Rewarded Ads are usually video ads which pay high CPM for the users who view them in return for an in-game reward.
1) Check whether any ad is available:
IsRewardedAdReady
2) Show the ad:
ShowRewardedAd
3) Listen to events:
RewardGranted
RewardDeclined
RewardUnavailable
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
Enhance.LogEvent("event_type");
2) Send an analytics event with additional parameter:
Enhance.LogEvent("event_type", "event_param_key", "event_param_value");
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
Enhance.logEvent("event_type");
2) Send an analytics event with additional parameter:
Enhance.logEvent("event_type", "event_param_key", "event_param_value");
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
[Enhance logEvent:@"event_type"];
2) Send an analytics event with additional parameter:
[Enhance logEvent:@"event_type" withParameter:@"event_param_key" andValue:@"event_param_value"];
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
Enhance.logEvent("event_type");
2) Send an analytics event with additional parameter:
Enhance.logEvent("event_type", "event_param_key", "event_param_value");
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
Enhance.logEvent("testEvent");
2) Send a detailed analytics event:
Enhance.logEvent("testEvent", "testParam", "testValue");
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
enhance.logCustomEvent("event_type")
2) Send an analytics event with additional parameter:
enhance.logCustomEvent("event_type", "event_param_key", "event_param_value")
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Actions
Send a simple analytics event.
Send an analytics event with additional parameter.
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
Enhance.logEvent('event_type');
2) Send a detailed analytics event:
Enhance.logEvent('event_type', 'event_param_key', 'event_param_value');
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Action Blocks
Send an event to the hooked analytics networks. By default it will take three text parameters, which are event type, parameter's key and parameter's value, but you can also use a simplified version of this action, which will take only one parameter: event type.
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
Enhance.logEvent(eventType: eventName)
^^^^^^^^^
String
2) Send a detailed analytics event:
Enhance.logEvent(eventType: eventName, paramKey: paramKey, paramValue: paramValue)
^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^
String String String
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
Actions
Log simple event
Send a simple analytics event.
Log event
Send an analytics event with additional parameter.
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
Enhance.LogEvent(string eventType);
2) Send a detailed analytics event with parameter:
Enhance.LogEvent(string eventType, string paramKey, string paramValue);
Enhance can hook into various analytics networks. By default it will track sessions, users and retention.
1) Send a simple analytics event:
LogEvent (Text eventName)
2) Send an analytics event with additional parameter:
LogEventWithParameter (Text eventName, Text paramKey, Text paramValue)
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
bool isSupported = Enhance.Purchases.IsSupported();
2) Start the purchase flow for the given product:
Enhance.Purchases.AttemptPurchase ("product_name", onPurchaseSuccess, onPurchaseFailed);
3) Try to consume the given product from the user's inventory:
Enhance.Purchases.Consume ("product_name", onConsumeSuccess, onConsumeFailed);
4) Check if item is already owned:
bool isOwned = Enhance.Purchases.IsItemOwned("product_name");
5) Get the number of the given product that user owns, or 0 if none:
int count = Enhance.Purchases.GetOwnedItemCount("product_name");
6) Get the string containing the localized display title:
string displayTitle = Enhance.Purchases.GetDisplayTitle("product_name", "Default Title");
7) Get the string containing the localized display description:
string displayDescription = Enhance.Purchases.GetDisplayDescription("product_name", "Default Description");
8) Get the string containing the localized display price:
string displayPrice = Enhance.Purchases.GetDisplayPrice("product_name", "Default Price");
9) Manually restore purchases and update the user's inventory, if applicable:
Enhance.Purchases.ManuallyRestorePurchases(onRestoreSuccessCallback, onRestoreFailedCallback);
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
boolean isSupported = Enhance.purchases.isSupported();
2) Start the purchase flow for the given product:
Enhance.purchases.attemptPurchase("product_name", new EnhanceInAppPurchases.PurchaseCallback() {
@Override
public void onPurchaseSuccess()
{ }
@Override
public void onPurchaseFailed()
{ }
});
3) Try to consume the given product from the user's inventory:
Enhance.purchases.consume("product_name", new EnhanceInAppPurchases.ConsumeCallback() {
@Override
public void onConsumeSuccess()
{ }
@Override
public void onConsumeFailed()
{ }
});
4) Check if item is already owned:
boolean isOwned = Enhance.purchases.isItemOwned("product_name");
5) Get the number of the given product that user owns, or 0 if none:
int count = Enhance.purchases.getOwnedItemCount("product_name");
6) Get the string containing the localized display title:
String displayTitle = Enhance.purchases.getDisplayTitle("product_name", "default title");
7) Get the string containing the localized display description:
String displayDescription = Enhance.purchases.getDisplayDescription("product_name", "default description");
8) Get the string containing the localized display price:
String displayPrice = Enhance.purchases.getDisplayPrice("product_name", "default price");
9) Manually restore purchases and update the user's inventory, if applicable:
Enhance.purchases.manuallyRestorePurchases(new EnhanceInAppPurchases.RestoreCallback() {
@Override
public void onRestoreSuccess()
{ }
@Override
public void onRestoreFailed()
{ }
});
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
bool isSupported = [[Enhance purchases] isSupported];
2) Start the purchase flow for the given product:
[[Enhance purchases] attemptPurchase:@"product_name" delegate:self];
3) Try to consume the given product from the user's inventory:
[[Enhance purchases] consume:@"product_name" delegate:self];
4) Check if item is already owned:
bool isOwned = [[Enhance purchases] isItemOwned:@"product_name"];
5) Get the number of the given product that user owns, or 0 if none:
int count = [[Enhance purchases] getOwnedItemCount:@"product_name"];
6) Get the string containing the localized display title:
NSString* displayTitle = [[Enhance purchases] getDisplayTitle:@"product_name" defaultTitle:@"Default Title"];
7) Get the string containing the localized display description:
NSString* displayDescription = [[Enhance purchases] getDisplayDescription:@"product_name" defaultTitle:@"Default Description"];
8) Get the string containing the localized display price:
NSString* displayPrice = [[Enhance purchases] getDisplayPrice:@"product_name" defaultPrice:@"Default Price"];
9) Manually restore purchases and update the user's inventory, if applicable:
[[Enhance purchases] manuallyRestorePurchases:self];
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
var isSupported:Boolean = Enhance.purchases.isSupported();
2) Start the purchase flow for the given product:
Enhance.purchases.attemptPurchase("product_name", onPurchaseSuccess, onPurchaseFailed);
3) Try to consume the given product from the user's inventory:
Enhance.purchases.consume("product_name", onConsumeSuccess, onConsumeFailed);
4) Check if item is already owned:
var isOwned:Boolean = Enhance.purchases.isItemOwned("product_name");
5) Get the number of the given product that user owns, or 0 if none:
var count:int = Enhance.purchases.getOwnedItemCount("product_name");
6) Get the string containing the localized display title:
var displayTitle:String = Enhance.purchases.getDisplayTitle("product_name", "default title");
7) Get the string containing the localized display description:
var displayDescription:String = Enhance.purchases.getDisplayDescription("product_name", "default description");
8) Get the string containing the localized display price:
var displayPrice:String = Enhance.purchases.getDisplayPrice("product_name", "default price");
9) Manually restore purchases and update the user's inventory, if applicable:
Enhance.purchases.manuallyRestorePurchases(onRestoreSuccess, onRestoreFailed);
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
var isSupported:Bool = Enhance.purchases.isSupported();
2) Start the purchase flow for the given product:
Enhance.purchases.attemptPurchase("product_name", onPurchaseSuccess, onPurchaseFailed);
3) Try to consume the given product from the user's inventory:
Enhance.purchases.consume("product_name", onConsumeSuccess, onConsumeFailed);
4) Check if item is already owned:
var isOwned:Bool = Enhance.purchases.isItemOwned("product_name");
5) Get the number of the given product that user owns, or 0 if none:
var count:int = Enhance.purchases.getOwnedItemCount("product_name");
6) Get the string containing the localized display title:
var displayTitle:String = Enhance.purchases.getDisplayTitle("product_name", "default title");
7) Get the string containing the localized display description:
var displayDescription:String = Enhance.purchases.getDisplayDescription("product_name", "default description");
8) Get the string containing the localized display price:
var displayPrice:String = Enhance.purchases.getDisplayPrice("product_name", "default price");
9) Manually restore purchases and update the user's inventory, if applicable:
Enhance.purchases.manuallyRestorePurchases(onRestoreSuccess, onRestoreFailed);
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
is_supported = enhance.iapIsSupported()
2) Start the purchase flow for the given product:
enhance.attemptPurchase("product_name", on_purchase_success, on_purchase_failed)
3) Try to consume the given product from the user's inventory:
enhance.consume("product_name", on_consume_success, on_consume_failed)
4) Check if item is already owned:
enhance.isItemOwned("product_name")
5) Get the number of the given product that user owns, or 0 if none:
count = enhance.getOwnedItemCount("product_name")
6) Get the string containing the localized display title:
title = enhance.getDisplayTitle("product_name", "Default Title")
7) Get the string containing the localized display description:
desc = enhance.getDisplayDescription("product_name", "Default Description")
8) Get the string containing the localized display price:
price = enhance.getDisplayPrice("product_name", "Default Price")
9) Manually restore purchases and update the user's inventory, if applicable:
enhance.manuallyRestorePurchases(on_restore_success, on_restore_failed)
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Actions
Check if In-App Purchases are currently supported in your app.
Start the purchase flow for the given product.
Try to consume the given product from the user's inventory.
Check if item is already owned.
Get the number of the given product that user owns, or 0 if none.
Get the string containing the localized display title.
Get the string containing the localized display description.
Get the string containing the localized display price.
Manually restore purchases and update the user's inventory, if applicable.
2) Conditions
Triggered when IAP status is received (supported or not).
Triggered when a purchase is finished successfully.
Triggered when a purchase failed.
Triggered when consumption of the item succeeded.
Triggered when consumption of the item failed.
Triggered when restore of purchases succeeded.
Triggered when restore of purchases failed.
Triggered when the given product is owned.
Triggered when the given product is NOT owned.
Triggered when count of the given product is received. Use expression to fetch the count.
Triggered when a display title of the product is received. Use expression to fetch the title.
Triggered when a display description of the product is received.
Triggered when a display price of the product is received. Use expression to fetch the price.
3) Expressions
[Enhance.LastOwnedItemCount]
Last received owned item count. Returns number.
[Enhance.LastDisplayTitle]
Last received display title. Returns string.
[Enhance.LastDisplayDescription]
Last received display description. Returns string.
[Enhance.LastDisplayPrice]
Last received display price. Returns string.
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
Enhance.purchases.isSupported(isSupportedCallback);
2) Start the purchase flow for the given product:
Enhance.purchases.attemptPurchase('product_name', onPurchaseSuccess, onPurchaseFailed);
3) Try to consume the given product from the user's inventory:
Enhance.purchases.consume('product_name', onConsumeSuccess, onConsumeFailed);
4) Check if item is already owned:
Enhance.purchases.isItemOwned('product_name', resultCallback);
5) Get the number of the given product that user owns, or 0 if none:
Enhance.purchases.getOwnedItemCount('product_name', resultCallback);
6) Get the string containing the localized display title:
Enhance.purchases.getDisplayTitle('product_name', 'default_title', resultCallback);
7) Get the string containing the localized display description:
Enhance.purchases.getDisplayDescription('product_name', 'default_description', resultCallback);
8) Get the string containing the localized display price:
Enahnce.purchases.getDisplayPrice('product_name', 'default_price', resultCallback);
9) Manually restore purchases and update the user's inventory, if applicable:
Enhance.purchases.manuallyRestorePurchases(onRestoreSuccess, onRestoreFailed);
The Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Action Blocks
Start the purchase flow for the given product.
Try to consume the given product from the user's inventory.
Manually restore purchases and update the user's inventory, if applicable.
2) Normal Blocks
Check if In-App purchasing is currently supported. Returns boolean.
Check if item is already owned. Returns boolean.
Get the number of the given product that user owns, or 0 if none.
Get the string containing the localized display price.
Get the string containing the localized display title.
Get the string containing the localized display description.
3) Wrapper Blocks
Define actions which are triggered after the purchase succeeded.
Define actions which are triggered after the purchase failed.
Define actions which are triggered after the consume succeeded.
Define actions which are triggered after the consume failed.
Define actions which are triggered after the restore succeeded.
Define actions which are triggered after the restore failed.
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
Actions
Refresh status
Refresh In-App Purchases status to check whether it's currently supported or not. Triggers [On status received].
Attempt purchase
Start the purchase flow for the given product.
Consume product
Try to consume the given product from the user's inventory.
Check if item is owned
Check if item is already owned.
Get owned item count
Get the number of the given product that user owns, or 0 if none.
Get display title
Get the string containing the localized display title.
Get display description
Get the string containing the localized display description.
Get display price
Get the string containing the localized display price.
Manually restore purchases
Manually restore purchases and update the user's inventory, if applicable.
Conditions
On status received
Triggered when IAP status is received. [Is IAP supported] is updated.
Is IAP supported
Check if In-App purchasing is currently supported.
On purchase success
Triggered when a purchase is finished successfully.
On purchase failed
Triggered when a purchase failed.
On consume success
Triggered when consumption of the item succeeded.
On consume failed
Triggered when consumption of the item failed.
On restore purchases success
Triggered when restore of purchases succeeded.
On restore purchases failed
Triggered when restore of purchases failed.
On item is owned
Triggered when the item is owned.
On item is not owned
Triggered when the item is NOT owned.
On owned item count received
Triggered when count of the owned item is received. Use expresion to fetch the count.
On display title received
Triggered when a display title of the product is received. Use expression to fetch the title.
On display description received
Triggered when a display description of the product is received. Use expression to fetch the description.
On display price received
Triggered when a display price of the product is received. Use expression to fetch the price.
Expressions
Enhance.LastOwnedItemCount
Last received owned item count. Returns number.
Enhance.LastDisplayTitle
Last received display title. Returns string.
Enhance.LastDisplayDescription
Last received display description. Returns string.
Enhance.LastDisplayPrice
Last received display price. Returns string.
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
bool isSupported = Enhance.Purchases.IsSupported();
2) Start the purchase flow for the given product:
Enhance.Purchases.AttemptPurchase(string productName, Action onPurchaseSuccess, Action onPurchaseFailed);
3) Try to consume the given product from the user's inventory:
Enhance.Purchases.Consume(string productName, Action onConsumeSuccess, Action onConsumeFailed);
4) Check if item is already owned:
bool isOwned = Enhance.Purchases.IsItemOwned(string productName);
5) Get the number of the given product that user owns, or 0 if none:
int count = Enhance.Purchases.GetOwnedItemCount(string productName);
6) Get the string containing the localized display title:
string displayTitle = Enhance.Purchases.GetDisplayTitle(string productName, string defaultTitle);
7) Get the string containing the localized display description:
string displayDesc = Enhance.Purchases.GetDisplayDescription(string productName, string defaultDescription);
8) Get the string containing the localized display price:
string displayPrice = Enhance.Purchases.GetDisplayPrice(string productName, string defaultPrice);
9) Manually restore purchases and update the user's inventory, if applicable:
Enhance.Purchases.ManuallyRestorePurchases(Action onRestoreSuccess, Action onRestoreFailed);
Enhance library provides a set of functions which help you to easily make use of different In-App Purchases SDKs in your application.
1) Check if In-App purchasing is currently supported:
IsPurchasingSupported
2) Start the purchase flow for the given product:
AttemptPurchase (Text productName)
3) Try to consume the given product from the user's inventory:
ConsumePurchase (Text productName)
4) Check if item is already owned:
IsItemOwned (Text productName)
5) Get the number of the given product that user owns, or 0 if none:
GetOwnedItemCount (Text productName)
6) Get the string containing the localized display title:
GetPurchaseDisplayTitle (Text productName, Text defaultTitle)
7) Get the string containing the localized display description:
GetPurchaseDisplayDescription (Text productName, Text defaultDescription)
8) Get the string containing the localized display price:
GetPurchaseDisplayPrice (Text productName, Text defaultPrice)
9) Manually restore purchases and update the user's inventory, if applicable:
ManuallyRestorePurchases
10) Listen to events:
PurchaseSuccess
PurchaseFailed
ConsumeSuccess
ConsumeFailed
ManualRestoreSuccess
ManualRestoreFailed
For the majority of SDKs that support GDPR, you must present an appropriate choice to the user, clearly outlining what the user is agreeing to and giving them a clear choice to opt in or out. Once you have done this you can use the methods provided in the Drag and Drop library, listed below, to convey the user's choice through to the SDKs you have integrated.
Methods:
void Enhance.RequiresDataConsentOptIn(
Action onRequired,
Action onNotRequired
)
This method returns true to the callback method when any kind of opt-in is required by services that are included in your app.
void Enhance.ShowServiceOptInDialogs()
void Enhance.ShowServiceOptInDialogs(
Action onDialogComplete
)
void Enhance.ShowServiceOptInDialogs(
string[] requestedSdks
)
void Enhance.ShowServiceOptInDialogs(
string[] requestedSdks,
Action onDialogComplete
)
This method will instruct any services which contain built-in opt-in dialogs to display them. The Enhance process will inform you about which services allow this type of opt-in.
void Enhance.ServiceTermsOptIn()
void Enhance.ServiceTermsOptIn(
string[] requestedSdks
)
Calling this method will opt the current user in to using the services that you selected during the Enhance process. This should be used for any services which don't provide their own opt-in dialogs but are marked as GDPR compliant when Enhancing.
void Enhance.ServiceTermsOptOut()
This explicit opt-out will instruct any GDPR compliant services that you're using that the user has specifically declined an opt-in to their data collection and processing.
More information
For the majority of SDKs that support GDPR, you must present an appropriate choice to the user, clearly outlining what the user is agreeing to and giving them a clear choice to opt in or out. Once you have done this you can use the methods provided in the Drag and Drop library, listed below, to convey the user's choice through to the SDKs you have integrated.
Methods:
void Enhance.requiresDataConsentOptIn(
final Enhance.OptInRequiredCallback callback
)
This method returns true to the callback method when any kind of opt-in is required by services that are included in your app.
void Enhance.showServiceOptInDialogs()
void Enhance.showServiceOptInDialogs(
final Enhance.OnDataConsentOptInComplete callback
)
void Enhance.showServiceOptInDialogs(
List requestedSdks,
final Enhance.OnDataConsentOptInComplete callback
)
This method will instruct any services which contain built-in opt-in dialogs to display them. The Enhance process will inform you about which services allow this type of opt-in.
void Enhance.serviceTermsOptIn()
void Enhance.serviceTermsOptIn(
List requestedSdks
)
Calling this method will opt the current user in to using the services that you selected during the Enhance process. This should be used for any services which don't provide their own opt-in dialogs but are marked as GDPR compliant when Enhancing.
void Enhance.serviceTermsOptOut()
This explicit opt-out will instruct any GDPR compliant services that you're using that the user has specifically declined an opt-in to their data collection and processing.
More information
For the majority of SDKs that support GDPR, you must present an appropriate choice to the user, clearly outlining what the user is agreeing to and giving them a clear choice to opt in or out. Once you have done this you can use the methods provided in the Drag and Drop library, listed below, to convey the user's choice through to the SDKs you have integrated.
Methods:
void [Enhance requiresDataConsentOptIn:
(id)delegate
]
This method returns true to the callback method when any kind of opt-in is required by services that are included in your app.
void [Enhance showServiceOptInDialogs]
void [Enhance showServiceOptInDialogs:
delegate:(id)delegate
]
void [Enhance showServiceOptInDialogs:
(NSArray*)requestedSdks
delegate:(id)delegate
]
This method will instruct any services which contain built-in opt-in dialogs to display them. The Enhance process will inform you about which services allow this type of opt-in.
void [Enhance serviceTermsOptIn]
void [Enhance serviceTermsOptIn:
(NSArray*)requestedSdks
]
Calling this method will opt the current user in to using the services that you selected during the Enhance process. This should be used for any services which don't provide their own opt-in dialogs but are marked as GDPR compliant when Enhancing.
[Enhance serviceTermsOptOut]
This explicit opt-out will instruct any GDPR compliant services that you're using that the user has specifically declined an opt-in to their data collection and processing.
More information
For the majority of SDKs that support GDPR, you must present an appropriate choice to the user, clearly outlining what the user is agreeing to and giving them a clear choice to opt in or out. Once you have done this you can use the methods provided in the Drag and Drop library, listed below, to convey the user's choice through to the SDKs you have integrated.
Methods:
Enhance.requiresDataConsentOptIn(
onRequired:Function,
onNotRequired:Function
):void
This method returns true to the callback method when any kind of opt-in is required by services that are included in your app.
Enhance.showServiceOptInDialogs(
requestedSdks:Array = null,
onDialogComplete:Function = null
):void
This method will instruct any services which contain built-in opt-in dialogs to display them. The Enhance process will inform you about which services allow this type of opt-in.
Enhance.serviceTermsOptIn(
requestedSdks:Array = null
):void
Calling this method will opt the current user in to using the services that you selected during the Enhance process. This should be used for any services which don't provide their own opt-in dialogs but are marked as GDPR compliant when Enhancing.
Enhance.serviceTermsOptOut():void
This explicit opt-out will instruct any GDPR compliant services that you're using that the user has specifically declined an opt-in to their data collection and processing.
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information
We are currently working on adding support for GDPR compliance to this platform. Keep an eye on our announcements for an update very soon!
More information