Package com.tapjoy
Interface TJPlacementListener
public interface TJPlacementListener
Interface for Tapjoy placement callbacks.
Provides methods to notify the app about the status of a Tapjoy placement request,
the state of the displayed content, and the outcome of any purchase or reward requests.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onClick
(TJPlacement placement) Deprecated.Deprecated since 14.2.0 Called when a click event has occurredvoid
onContentDismiss
(TJPlacement placement) Called when a content for the given placement is dismissed.void
onContentReady
(TJPlacement placement) Called when a content for the given placement is ready to show.void
onContentShow
(TJPlacement placement) Called when a content for the given placement is showing.void
onPurchaseRequest
(TJPlacement placement, TJActionRequest request, String productId) Called when a purchase has been requested.void
onRequestFailure
(TJPlacement placement, TJError error) Called when given placement request has failed.void
onRequestSuccess
(TJPlacement placement) Called when given placement request has succeeded.void
onRewardRequest
(TJPlacement placement, TJActionRequest request, String itemId, int quantity) Called when a reward unlock has been requested.
-
Method Details
-
onRequestSuccess
Called when given placement request has succeeded.- Parameters:
placement
- the placement that was requested.
-
onRequestFailure
Called when given placement request has failed.- Parameters:
placement
- the placement that was requested.error
- the error that occurred.
-
onContentReady
Called when a content for the given placement is ready to show.- Parameters:
placement
- the placement that was requested
-
onContentShow
Called when a content for the given placement is showing.- Parameters:
placement
- the placement that was requested
-
onContentDismiss
Called when a content for the given placement is dismissed.- Parameters:
placement
- the placement that was requested
-
onPurchaseRequest
Called when a purchase has been requested.- Parameters:
placement
- the placement that was requestedrequest
- the action requestproductId
- the product identifier
-
onRewardRequest
Called when a reward unlock has been requested.- Parameters:
placement
- the placement that was requestedrequest
- the action requestitemId
- the name of the rewarded itemquantity
- the quantity of the rewarded item
-
onClick
Deprecated.Deprecated since 14.2.0 Called when a click event has occurred- Parameters:
placement
- the placement that was requested
-