package com.bigcrunch.ads.core /** * Internal callback interface for rewarded ad events * * Used by AdOrchestrator to communicate rewarded ad lifecycle events * back to the public BigCrunchRewarded API. */ internal interface RewardedCallback { /** * Called when a rewarded ad has been successfully loaded */ fun onAdLoaded() /** * Called when a rewarded ad fails to load * @param error Description of the failure */ fun onAdFailedToLoad(error: String) /** * Called when the rewarded ad is shown */ fun onAdShowed() /** * Called when the rewarded ad is dismissed */ fun onAdDismissed() /** * Called when the user clicks on the rewarded ad */ fun onAdClicked() /** * Called when the user has earned a reward * @param type The type of reward earned * @param amount The amount of reward */ fun onUserEarnedReward(type: String, amount: Int) }