public abstract class ChartboostDelegate extends java.lang.Object implements AbstractChartboostDelegate
AbstractChartboostDelegate. Extending from this instead
will allow you to skip overriding the methods you are not interested in.| Constructor and Description |
|---|
ChartboostDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
didCacheInPlay(java.lang.String location)
Called after an InPlay object has been loaded from the Chartboost API
servers and cached locally.
|
void |
didCacheInterstitial(java.lang.String location)
Called after an interstitial has been loaded from the Chartboost API
servers and cached locally.
|
void |
didCacheMoreApps(java.lang.String location)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
void |
didCacheRewardedVideo(java.lang.String location)
Called after a rewarded video has been loaded from the Chartboost API
servers and cached locally.
|
void |
didClickInterstitial(java.lang.String location)
Called after an interstitial has been clicked.
|
void |
didClickMoreApps(java.lang.String location)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
void |
didClickRewardedVideo(java.lang.String location)
Called after a rewarded video has been clicked.
|
void |
didCloseInterstitial(java.lang.String location)
Called after an interstitial has been closed.
|
void |
didCloseMoreApps(java.lang.String location)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
void |
didCloseRewardedVideo(java.lang.String location)
Called after a rewarded video has been closed.
|
void |
didCompleteInterstitial(java.lang.String location)
Called after an interstitial has been viewed completely.
|
void |
didCompleteRewardedVideo(java.lang.String location,
int reward)
Called after a rewarded video has been viewed completely and user is eligible for reward.
|
void |
didDismissInterstitial(java.lang.String location)
Called after an interstitial has been dismissed.
|
void |
didDismissMoreApps(java.lang.String location)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
void |
didDismissRewardedVideo(java.lang.String location)
Called after a rewarded video has been dismissed.
|
void |
didDisplayInterstitial(java.lang.String location)
Called after an interstitial has been displayed on the screen.
|
void |
didDisplayMoreApps(java.lang.String location)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
void |
didDisplayRewardedVideo(java.lang.String location)
Called after a rewarded video has been displayed on the screen.
|
void |
didFailToLoadInPlay(java.lang.String location,
CBError.CBImpressionError error)
Called after a InPlay has attempted to load from the Chartboost API
servers but failed.
|
void |
didFailToLoadInterstitial(java.lang.String location,
CBError.CBImpressionError error)
Called after an interstitial has attempted to load from the Chartboost API
servers but failed.
|
void |
didFailToLoadMoreApps(java.lang.String location,
CBError.CBImpressionError error)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
void |
didFailToLoadRewardedVideo(java.lang.String location,
CBError.CBImpressionError error)
Called after a rewarded video has attempted to load from the Chartboost API
servers but failed.
|
void |
didFailToRecordClick(java.lang.String uri,
CBError.CBClickError error)
Called after a click is registered, but the user is not fowrwarded to the Google Play Store.
|
void |
didInitialize()
Called when the SDK is finished intializing.
|
boolean |
shouldDisplayInterstitial(java.lang.String location)
Called before an interstitial will be displayed on the screen.
|
boolean |
shouldDisplayMoreApps(java.lang.String location)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
boolean |
shouldDisplayRewardedVideo(java.lang.String location)
Called before a rewarded video will be displayed on the screen.
|
boolean |
shouldRequestInterstitial(java.lang.String location)
Called before requesting an interstitial via the Chartboost API server.
|
boolean |
shouldRequestMoreApps(java.lang.String location)
Deprecated.
Support for MoreApps has been removed as of SDK 7.
|
void |
willDisplayInterstitial(java.lang.String location)
Called before the interstitial is about to be displayed on the screen.
|
void |
willDisplayVideo(java.lang.String location)
Called before the video is about to be displayed on the screen.
|
public boolean shouldRequestInterstitial(java.lang.String location)
Implement to control if the Chartboost SDK should fetch data from
the Chartboost API servers for the given CBLocation}. This is evaluated
if the Chartboost.showInterstitial(String)} orChartboost.cacheInterstitial(String)}
are called. If true is returned the operation will proceed, if false, then the operation is treated as a no-op.
shouldRequestInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public boolean shouldDisplayInterstitial(java.lang.String location)
Implement to control if the Chartboost SDK should display an interstitial for the given CBLocation}. This is evaluated if the Chartboost.showInterstitial(String)}
is called. If true is returned the operation will proceed, if false, then the
operation is treated as a no-op and nothing is displayed.
shouldDisplayInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCacheInterstitial(java.lang.String location)
Implement to be notified of when an interstitial has been loaded from the Chartboost API
servers and cached locally for a given CBLocation}.
didCacheInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didFailToLoadInterstitial(java.lang.String location,
CBError.CBImpressionError error)
Implement to be notified of when an interstitial has attempted to load from the Chartboost API
servers but failed for a given CBLocation}.
didFailToLoadInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.error - The reason for the error defined via a CBError.CBImpressionError.public void willDisplayInterstitial(java.lang.String location)
willDisplayInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didDismissInterstitial(java.lang.String location)
Implement to be notified of when an interstitial has been dismissed for a given CBLocation}.
"Dismissal" is defined as any action that removed the interstitial UI such as a click or close.
didDismissInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCloseInterstitial(java.lang.String location)
Implement to be notified of when an interstitial has been closed for a given CBLocation}.
"Closed" is defined as clicking the close interface for the interstitial.
didCloseInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didClickInterstitial(java.lang.String location)
Implement to be notified of when an interstitial has been click for a given CBLocation}.
"Clicked" is defined as clicking the creative interface for the interstitial.
didClickInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCompleteInterstitial(java.lang.String location)
Implement to be notified of when an interstitial has been viewed completely.
didCompleteInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didDisplayInterstitial(java.lang.String location)
Implement to be notified of when an interstitial has
been displayed on the screen for a given CBLocation}.
didDisplayInterstitial in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public boolean shouldRequestMoreApps(java.lang.String location)
shouldRequestMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCacheMoreApps(java.lang.String location)
Implement to be notified of when an "more applications" has been loaded from the Chartboost API
servers and cached locally for a given CBLocation}.
didCacheMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public boolean shouldDisplayMoreApps(java.lang.String location)
Implement to control if the Charboost SDK should display an "more applications"
for the given CBLocation. This is evaluated if the Chartboost.showMoreApps(String)
is called. If true is returned the operation will proceed, if false, then the
operation is treated as a no-op and nothing is displayed.
shouldDisplayMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didFailToLoadMoreApps(java.lang.String location,
CBError.CBImpressionError error)
Implement to be notified of when an "more applications" has attempted to load from the Chartboost API
servers but failed for a given CBLocation.
didFailToLoadMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.error - The reason for the error defined via a CBError.CBImpressionError}.public void didDismissMoreApps(java.lang.String location)
Implement to be notified of when an "more applications" has been dismissed for a given CBLocation}.
"Dismissal" is defined as any action that removed the "more applications" UI such as a click or close.
didDismissMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCloseMoreApps(java.lang.String location)
Implement to be notified of when an "more applications" has been closed for a given CBLocation.
"Closed" is defined as clicking the close interface for the "more applications".
didCloseMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didClickMoreApps(java.lang.String location)
Implement to be notified of when an "more applications" has been click for a given CBLocation.
"Clicked" is defined as clicking the creative interface for the "more applications".
didClickMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didDisplayMoreApps(java.lang.String location)
Implement to be notified of when an "more applications" has
been displayed on the screen for a given CBLocation}.
didDisplayMoreApps in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didFailToRecordClick(java.lang.String uri,
CBError.CBClickError error)
Implement to be notified of when a click is registered, but the user is not fowrwarded
to the Google Play Store for a given CBLocation}.
didFailToRecordClick in interface AbstractChartboostDelegateuri - The location for the Chartboost impression type.error - The reason for the error defined via a CBError.CBClickError}.public boolean shouldDisplayRewardedVideo(java.lang.String location)
Implement to control if the Charboost SDK should display a rewarded video
for the given CBLocation. This is evaluated if the Chartboost.showRewardedVideo(String)
is called. If true is returned the operation will proceed, if false, then the
operation is treated as a no-op and nothing is displayed.
shouldDisplayRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCacheRewardedVideo(java.lang.String location)
Implement to be notified of when a rewarded video has been loaded from the Chartboost API
servers and cached locally for a given CBLocation.
didCacheRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didFailToLoadRewardedVideo(java.lang.String location,
CBError.CBImpressionError error)
Implement to be notified of when an rewarded video has attempted to load from the Chartboost API
servers but failed for a given CBLocation}.
didFailToLoadRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.error - The reason for the error defined via a CBError.CBImpressionError}.public void didDismissRewardedVideo(java.lang.String location)
Implement to be notified of when a rewarded video has been dismissed for a given CBLocation}.
"Dismissal" is defined as any action that removed the rewarded video UI such as a click or close.
didDismissRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCloseRewardedVideo(java.lang.String location)
Implement to be notified of when a rewarded video has been closed for a given CBLocation.
"Closed" is defined as clicking the close interface for the rewarded video.
didCloseRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didClickRewardedVideo(java.lang.String location)
Implement to be notified of when a rewarded video has been click for a given CBLocation.
"Clicked" is defined as clicking the creative interface for the rewarded video.
didClickRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCompleteRewardedVideo(java.lang.String location,
int reward)
Implement to be notified of when a rewarded video has been viewed completely and user is eligible for reward.
didCompleteRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.reward - The reward for watching the video.public void didDisplayRewardedVideo(java.lang.String location)
Implement to be notified of when a rewarded video has
been displayed on the screen for a given CBLocation.
didDisplayRewardedVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void willDisplayVideo(java.lang.String location)
willDisplayVideo in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didCacheInPlay(java.lang.String location)
Implement to be notified of when an InPlay object has been loaded from the Chartboost API
servers and cached locally for a given CBLocation}.
didCacheInPlay in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.public void didFailToLoadInPlay(java.lang.String location,
CBError.CBImpressionError error)
Implement to be notified of when an InPlay has attempted to load from the Chartboost API
servers but failed for a given CBLocation}.
didFailToLoadInPlay in interface AbstractChartboostDelegatelocation - The location for the Chartboost impression type.error - The reason for the error defined via a CBError.CBImpressionError}.public void didInitialize()
didInitialize in interface AbstractChartboostDelegate