From 207fead0b75994b11c48c185a703f07220c3a2ee Mon Sep 17 00:00:00 2001 From: lpw <pengwei.li@gamehollywood.com> Date: Tue, 26 Jan 2021 09:41:41 +0800 Subject: [PATCH] 3.9.2 --- frameworks/Chartboost.framework/Versions/A/Headers/CHBRewarded.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/frameworks/Chartboost.framework/Versions/A/Headers/CHBRewarded.h b/frameworks/Chartboost.framework/Versions/A/Headers/CHBRewarded.h index 65f14cb..bade011 100644 --- a/frameworks/Chartboost.framework/Versions/A/Headers/CHBRewarded.h +++ b/frameworks/Chartboost.framework/Versions/A/Headers/CHBRewarded.h @@ -14,7 +14,7 @@ @protocol CHBRewardedDelegate @brief Rewarded delegate protocol that inherits from CHBAdDelegate. @discussion Provides methods to receive notifications related to a rewarded ad's actions and to control its behavior. - In a typical integration you would implement willShowAd: and didDismissAd:, pausing and resuming ongoing processes (e.g: gameplay, video) there. + In a typical integration you would implement willShowAd:, didShowAd: and didDismissAd:, pausing and resuming ongoing processes (e.g: gameplay, video) there. The method didEarnReward: needs to be implemented in order to be notified when the user earns a reward. */ @protocol CHBRewardedDelegate <CHBDismissableAdDelegate, CHBRewardableAdDelegate> @@ -53,6 +53,12 @@ - (void)willShowAd:(CHBShowEvent *)event { // Pause ongoing processes } + + - (void)didShowAd:(CHBShowEvent *)event error:(CHBShowError *)error { + if (error) { + // Resume paused processes. Note that if showing the ad fails didEarnReward: will not be called. + } + } - (void)didDismissAd:(CHBDismissEvent *)event { // Resume paused processes -- Gitblit v1.8.0