| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 | ////  MARewardedAdapterDelegate.h//  AppLovinSDK////  Created by Thomas So on 8/10/18.//  Copyright © 2019 AppLovin Corporation. All rights reserved.//#import <AppLovinSDK/MAAdapterDelegate.h>@class MAAdapterError;@class MAReward;NS_ASSUME_NONNULL_BEGIN/** * Protocol for adapters to forward ad load and display events to the MAX SDK for rewarded ads. */@protocol MARewardedAdapterDelegate <MAAdapterDelegate>/** * This method should called when an ad has been loaded. */- (void)didLoadRewardedAd;/** * This method should called when an ad has been loaded. * * @param extraInfo Extra info passed from the adapter. */- (void)didLoadRewardedAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;/** * This method should be called when an ad could not be loaded. * * @param adapterError An error that indicates the cause of the failure. */- (void)didFailToLoadRewardedAdWithError:(MAAdapterError *)adapterError;/** * This method should be called when the adapter has successfully displayed an ad to the user. */- (void)didDisplayRewardedAd;/** * This method should be called when the adapter has successfully displayed an ad to the user. * * @param extraInfo Extra info passed from the adapter. */- (void)didDisplayRewardedAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;/** * This method is should be called when an ad could not be displayed. * * @param adapterError An error that indicates the cause of the failure */- (void)didFailToDisplayRewardedAdWithError:(MAAdapterError *)adapterError;/** * This method is should be called when an ad could not be displayed. * * @param adapterError An error that indicates the cause of the failure * @param extraInfo Extra info passed from the adapter. */- (void)didFailToDisplayRewardedAdWithError:(MAAdapterError *)adapterError extraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;/** * This method should be called when the user has clicked adapter's ad. */- (void)didClickRewardedAd;/** * This method should be called when the user has clicked adapter's ad. * * @param extraInfo Extra info passed from the adapter. */- (void)didClickRewardedAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;/** * This method should be called when adapter's ad has been dismissed. */- (void)didHideRewardedAd;/** * This method should be called when adapter's ad has been dismissed. * * @param extraInfo Extra info passed from the adapter. */- (void)didHideRewardedAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;/** * This method should be invoked when a user should be granted a reward. * * @param reward The reward to be granted to the user. */- (void)didRewardUserWithReward:(MAReward *)reward;/** * This method should be invoked when a user should be granted a reward. * * @param reward The reward to be granted to the user. * @param extraInfo Extra info passed from the adapter. */- (void)didRewardUserWithReward:(MAReward *)reward extraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;@optional- (void)didStartRewardedAdVideo__deprecated_msg("This API is deprecated because not all adapters support this callback. Please use -[MARewardedAdapterDelegate didDisplayRewardedAd:] instead");- (void)didCompleteRewardedAdVideo__deprecated_msg("This API is deprecated because not all adapters support this callback. Please use -[MARewardedAdapterDelegate didHideRewardedAd:] instead");@endNS_ASSUME_NONNULL_END
 |