Placement. More...
Public Member Functions | |
void | RequestContent () |
Request a content for the placement. | |
void | ShowContent () |
Shows a content for the placement. | |
bool | IsContentAvailable () |
Whether or not content for this placement has been returned and is ready to be presented. | |
bool | IsContentReady () |
Whether or not the pre-loaded content for this placement has been cached and is ready to be presented. | |
string | GetName () |
Returns the name of this placement. | |
void | SetEntryPoint (TJEntryPoint entryPoint) |
Sets the entry point for this placement instance. | |
void | SetCurrencyBalance (string currencyId, int balance) |
Sets currency value for given currency ID. | |
int | GetCurrencyBalance (string currencyId) |
Gets currency balance for given currency ID. | |
void | SetRequiredAmount (string currencyId, int amount) |
Sets currency required amount for given currency ID. | |
int | GetRequiredAmount (string currencyId) |
Gets currency required amount for given currency ID. | |
delegate void | OnRequestSuccessHandler (TJPlacement placement) |
Delegate to be called when RequestContent() is successful Check whether content is available and ready, using IsContentAvailable and IsContentReady. | |
delegate void | OnRequestFailureHandler (TJPlacement placement, string error) |
Delegate to be called when RequestContent fails. | |
delegate void | OnContentReadyHandler (TJPlacement placement) |
Delegate to be called when a content for the given placement is ready to show. | |
delegate void | OnContentShowHandler (TJPlacement placement) |
Delegate to be called when a content for the given placement is showing. | |
delegate void | OnContentDismissHandler (TJPlacement placement) |
Delegate to be called when a content for the given placement is dismissed. | |
delegate void | OnClickHandler (TJPlacement placement) |
Delegate to be called when a click event has occurred. | |
delegate void | OnPurchaseRequestHandler (TJPlacement placement, TJActionRequest request, string productId) |
Called when a purchase has been requested. | |
delegate void | OnRewardRequestHandler (TJPlacement placement, TJActionRequest request, string itemId, int quantity) |
Called when a reward unlock has been requested. | |
delegate void | OnSetCurrencyBalanceSuccessHandler (TJPlacement placement) |
Delegate to be called when SetCurrencyBalance is successful. | |
delegate void | OnSetCurrencyBalanceFailureHandler (TJPlacement placement, int code, string error) |
Delegate to be called when SetCurrencyBalance fails. | |
delegate void | OnSetCurrencyAmountRequiredSuccessHandler (TJPlacement placement) |
Delegate to be called when SetRequiredAmount is successful. | |
delegate void | OnSetCurrencyAmountRequiredFailureHandler (TJPlacement placement, int code, string error) |
Delegate to be called when SetRequiredAmount fails. | |
Static Public Member Functions | |
static TJPlacement | CreatePlacement (string placementName) |
Create placement. | |
static void | DismissContent () |
Dismiss content which is showing. | |
Events | |
static OnRequestSuccessHandler | OnRequestSuccess [add, remove] |
Event for OnRequestSuccessHandler. | |
static OnRequestFailureHandler | OnRequestFailure [add, remove] |
Event for OnRequestFailureHandler. | |
static OnContentReadyHandler | OnContentReady [add, remove] |
Event for OnContentReadyHandler. | |
static OnContentShowHandler | OnContentShow [add, remove] |
Event for OnContentShowHandler. | |
static OnContentDismissHandler | OnContentDismiss [add, remove] |
Event for OnContentDismissHandler. | |
static OnClickHandler | OnClick [add, remove] |
Event for OnClickHandler. | |
static OnPurchaseRequestHandler | OnPurchaseRequest [add, remove] |
Event for OnPurchaseRequestHandler. | |
static OnRewardRequestHandler | OnRewardRequest [add, remove] |
Event for OnRewardRequestHandler. | |
static OnSetCurrencyBalanceSuccessHandler | OnSetCurrencyBalanceSuccess [add, remove] |
Event for OnSetCurrencyBalanceSuccessHandler. | |
static OnSetCurrencyBalanceFailureHandler | OnSetCurrencyBalanceFailure [add, remove] |
Event for OnSetCurrencyBalanceFailureHandler. | |
static OnSetCurrencyAmountRequiredSuccessHandler | OnSetCurrencyAmountRequiredSuccess [add, remove] |
Event for OnSetCurrencyAmountRequiredSuccessHandler. | |
static OnSetCurrencyAmountRequiredFailureHandler | OnSetCurrencyAmountRequiredFailure [add, remove] |
Event for OnSetCurrencyAmountRequiredFailureHandler. | |
Placement.
|
inline |
Gets currency balance for given currency ID.
currencyId | currency id |
|
inline |
Returns the name of this placement.
This is the same name passed to the constructor when creating this TapjoyUnity.TJPlacement object.
|
inline |
Gets currency required amount for given currency ID.
currencyId | currency id |
|
inline |
Whether or not content for this placement has been returned and is ready to be presented.
|
inline |
Whether or not the pre-loaded content for this placement has been cached and is ready to be presented.
delegate void TapjoyUnity.TJPlacement.OnClickHandler | ( | TJPlacement | placement | ) |
Delegate to be called when a click event has occurred.
placement | the placement that was requested |
delegate void TapjoyUnity.TJPlacement.OnContentDismissHandler | ( | TJPlacement | placement | ) |
Delegate to be called when a content for the given placement is dismissed.
placement | the placement that was requested |
delegate void TapjoyUnity.TJPlacement.OnContentReadyHandler | ( | TJPlacement | placement | ) |
Delegate to be called when a content for the given placement is ready to show.
placement | the placement that was requested |
delegate void TapjoyUnity.TJPlacement.OnContentShowHandler | ( | TJPlacement | placement | ) |
Delegate to be called when a content for the given placement is showing.
placement | the placement that was requested |
delegate void TapjoyUnity.TJPlacement.OnPurchaseRequestHandler | ( | TJPlacement | placement, |
TJActionRequest | request, | ||
string | productId ) |
Called when a purchase has been requested.
placement | the placement that was requested |
request | The request Use TapjoyUnity.TJActionRequest requestID to get the identifier of the campaign which make this request |
productId | the product identifier (SKU) of the in-app item to purchase |
delegate void TapjoyUnity.TJPlacement.OnRequestFailureHandler | ( | TJPlacement | placement, |
string | error ) |
Delegate to be called when RequestContent fails.
placement | the placement that was requested |
error | the error message |
delegate void TapjoyUnity.TJPlacement.OnRequestSuccessHandler | ( | TJPlacement | placement | ) |
Delegate to be called when RequestContent() is successful Check whether content is available and ready, using IsContentAvailable and IsContentReady.
placement | the placement that was requested |
delegate void TapjoyUnity.TJPlacement.OnRewardRequestHandler | ( | TJPlacement | placement, |
TJActionRequest | request, | ||
string | itemId, | ||
int | quantity ) |
Called when a reward unlock has been requested.
placement | the placement that was requested |
request | The request Use TapjoyUnity.TJActionRequest requestID to get the unique identifier of this reward to prevent the reuse attack Use TapjoyUnity.TJActionRequest token to verify this reward request |
itemId | the name of the rewarded item |
quantity | the quantity of the rewarded item |
delegate void TapjoyUnity.TJPlacement.OnSetCurrencyAmountRequiredFailureHandler | ( | TJPlacement | placement, |
int | code, | ||
string | error ) |
Delegate to be called when SetRequiredAmount fails.
placement | the placement that was requested |
code | the error code |
error | the error message |
delegate void TapjoyUnity.TJPlacement.OnSetCurrencyAmountRequiredSuccessHandler | ( | TJPlacement | placement | ) |
Delegate to be called when SetRequiredAmount is successful.
placement | the placement that was requested |
delegate void TapjoyUnity.TJPlacement.OnSetCurrencyBalanceFailureHandler | ( | TJPlacement | placement, |
int | code, | ||
string | error ) |
Delegate to be called when SetCurrencyBalance fails.
placement | the placement that was requested |
code | the error code |
error | the error message |
delegate void TapjoyUnity.TJPlacement.OnSetCurrencyBalanceSuccessHandler | ( | TJPlacement | placement | ) |
Delegate to be called when SetCurrencyBalance is successful.
placement | the placement that was requested |
|
inline |
Request a content for the placement.
This method should be called after SDK is connected.
|
inline |
Sets currency value for given currency ID.
currencyId | currency id |
balance | balance amount |
|
inline |
Sets the entry point for this placement instance.
entryPoint | the entry point to set. |
|
inline |
Sets currency required amount for given currency ID.
currencyId | currency id |
amount | required amount |
|
staticaddremove |
Event for OnClickHandler.