RichieAdsProtocol

Objective-C

@protocol RichieAdsProtocol <NSObject>
-(void) addSlotListListener:(id<RichieAdsSlotListListener>)listener;
-(void) removeSlotListListener:(id<RichieAdsSlotListListener>)listener;
-(BOOL) hasLoadedSlotAd:(NSString *)adIdentifier;
-(void) startLoadingSlotAd:(RichieAdsAd *)ad;
-(nullable UIImage *) placeholderImageForAdWithIdentifier:(NSString *)adIdentifier
                                            inOrientation:(RichieOrientation)orientation
                                                   inSlot:(NSString *)slotIdentifier;
-(nullable UIImage *) placeholderImageForAdWithIdentifier:(nonnull NSString *)adIdentifier
                                            inOrientation:(RichieOrientation)orientation
                                         withContainerURL:(nonnull NSURL *)containerDir;
-(CGRect) rectForDrawingPlaceholderImage:(UIImage *)image inRect:(CGRect)targetRect;
-(void) startLoadingAdWithIdentifier:(NSString *)adIdentifier
                             fromURL:(NSURL *)url
                    toContainerAtURL:(NSURL *)containerDir
               useBackgroundDownload:(BOOL)useBackgroundDownload;
-(void) loadAdWithIdentifier:(NSString *)adIdentifier
              toContainerDir:(NSURL *)containerDir
       useBackgroundDownload:(BOOL)useBackgroundDownload
                    progress:(void (^ _Nullable)(int64_t bytesDownloaded, int64_t expectedBytes))progress
                  completion:(void (^)(BOOL succeeded, NSError * _Nullable error))completion;
-(BOOL) hasLoadedAdWithIdentifier:(nonnull NSString *)adIdentifier
                   toContainerDir:(nonnull NSURL *)containerDir;
-(BOOL) hasLoadedAdWithIdentifier:(NSString *)adIdentifier
                          fromURL:(NSURL *)adPackageURL
                 toContainerAtURL:(NSURL *)containerDir;
-(void) invalidate;
-(nullable RichieAdsSlotAdFlight *) nextFlightForSlotWithIdentifier:(nonnull NSString *)slotIdentifier;
-(nullable RichieAdsView *) viewWithFrame:(CGRect)frame
                              forAdFlight:(nonnull RichieAdsSlotAdFlight *)slotAdFlight
                                 delegate:(nonnull id<RichieAdsViewDelegate>)delegate
                               parameters:(nullable NSDictionary<NSString *, NSString *> *)parameters;
-(nullable RichieAdsView *) viewWithFrame:(CGRect)frame
                             adIdentifier:(nonnull NSString *)adIdentifier
                             containerURL:(nonnull NSURL *)containerDir
                                 delegate:(nonnull id<RichieAdsViewDelegate>)delegate
                               parameters:(nullable NSDictionary *)parameters;

-(void) deleteAdWithIdentifier:(nonnull NSString *)adIdentifier inContainerAtURL:(nonnull NSURL *)containerDir;
-(void) containerWillBeDeleted:(nonnull NSURL *)containerDir;
-(nullable RichieAdsAd *) adFromFlight:(RichieAdsSlotAdFlight *)flight;
@end

Swift

protocol RichieAdsProtocol : NSObjectProtocol

Undocumented