コード例 #1
0
 @Override
 public void didDismissRewardedVideo(String location) {
   // This is called before didCloseRewardedVideo and didClickRewardedVideo
   super.didDismissRewardedVideo(location);
   MoPubRewardedVideoManager.onRewardedVideoClosed(ChartboostRewardedVideo.class, location);
   MoPubLog.d("Chartboost rewarded video dismissed for location " + location + ".");
 }
コード例 #2
0
    @Override
    public void didFailToLoadRewardedVideo(String location, CBError.CBImpressionError error) {
      super.didFailToLoadRewardedVideo(location, error);

      if (mLocationsToLoad.contains(location)) {
        MoPubLog.d("Chartboost rewarded video cache failed for location " + location + ".");
        MoPubRewardedVideoManager.onRewardedVideoLoadFailure(
            ChartboostRewardedVideo.class, location, VIDEO_DOWNLOAD_ERROR);
        mLocationsToLoad.remove(location);
      }
    }
コード例 #3
0
    @Override
    public void didCacheRewardedVideo(String location) {
      super.didCacheRewardedVideo(location);

      if (mLocationsToLoad.contains(location)) {
        MoPubLog.d("Chartboost rewarded video cached for location " + location + ".");
        MoPubRewardedVideoManager.onRewardedVideoLoadSuccess(
            ChartboostRewardedVideo.class, location);
        mLocationsToLoad.remove(location);
      }
    }
コード例 #4
0
 @Override
 public void didCompleteRewardedVideo(String location, int reward) {
   super.didCompleteRewardedVideo(location, reward);
   MoPubLog.d(
       "Chartboost rewarded video completed for location "
           + location
           + " with "
           + "reward amount "
           + reward);
   MoPubRewardedVideoManager.onRewardedVideoCompleted(
       ChartboostRewardedVideo.class,
       location,
       MoPubReward.success(MoPubReward.NO_REWARD_LABEL, reward));
 }
コード例 #5
0
 @Override
 public void didDisplayRewardedVideo(String location) {
   super.didDisplayRewardedVideo(location);
   MoPubLog.d("Chartboost rewarded video displayed for location " + location + ".");
   MoPubRewardedVideoManager.onRewardedVideoStarted(ChartboostRewardedVideo.class, location);
 }
コード例 #6
0
 @Override
 public void didClickRewardedVideo(String location) {
   super.didClickRewardedVideo(location);
   MoPubRewardedVideoManager.onRewardedVideoClicked(ChartboostRewardedVideo.class, location);
   MoPubLog.d("Chartboost rewarded video clicked for location " + location + ".");
 }
コード例 #7
0
 @Override
 public void didCloseRewardedVideo(String location) {
   super.didCloseRewardedVideo(location);
   MoPubLog.d("Chartboost rewarded video closed for location " + location + ".");
 }