AATBannerCacheConfiguration
@objc public class AATBannerCacheConfiguration: NSObject {
/// The banner cache delegate that would be notified with the first loaded banner
@objc public weak var delegate: AATBannerCacheDelegate?
/// An instance of ``AATBannerRequestDelegate`` that should provide the targeting information
@objc public weak var bannerRequestDelegate: AATBannerRequestDelegate?
/// A Bool that defines if the cache should load an additional ad at the beginning. False by default
@objc public var shouldCacheAdditionalAdAtStart: Bool = true
/// An instance of AATBannerRequest that will be used in requesting banner ads from the AATInfeedBannerPlacement.
@objc public var requestConfiguration: AATBannerRequest = AATBannerRequest()
/// Represents the minimum delay between two banner consumptions in seconds
@objc public var minDelay: TimeInterval = 1
/// Init the ``AATBannerCacheConfiguration`` object
///
/// - Parameter placementName: the placement name
/// - Parameter size: the desired cache size
@objc
public init(placementName: String, size: Int)
}
@interface AATBannerCacheConfiguration : NSObject
/// An instance conforming to ``AATBannerCacheDelegate`` tha would be notified with the first loaded banner
@property (nonatomic, weak) id <AATBannerCacheDelegate> _Nullable delegate;
/// An instance conforming to ``AATBannerRequestDelegate`` that should provide the targeting information
@property (nonatomic, weak) id <AATBannerRequestDelegate> _Nullable bannerRequestDelegate;
/// A Bool that defines if the cache should load an additional ad at the beginning. False by default
@property (nonatomic) BOOL shouldCacheAdditionalAdAtStart;
/// An instance of ``AATBannerRequest`` that will be used in requesting banner ads from the ``AATInfeedBannerPlacement``.
@property (nonatomic, strong) AATBannerRequest * _Nonnull requestConfiguration;
/// A TimeInterval that represents the minimum delay between two banner consumptions in seconds
@property (nonatomic) NSTimeInterval minDelay;
/// Init the <code>AATBannerCacheConfiguration</code> object
/// \param placementName the placement name
/// \param size the desired cache size
- (nonnull instancetype)initWithPlacementName:(NSString * _Nonnull)placementName size:(NSInteger)size;
@end
Last updated