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
-
Undocumented
Declaration
Objective-C
-(void) addSlotListListener:(id<RichieAdsSlotListListener>)listener;Swift
func add(_ listener: any RichieAdsSlotListListener) -
Undocumented
Declaration
Objective-C
-(void) removeSlotListListener:(id<RichieAdsSlotListListener>)listener;Swift
func remove(_ listener: any RichieAdsSlotListListener) -
Undocumented
Declaration
Objective-C
-(BOOL) hasLoadedSlotAd:(NSString *)adIdentifier;Swift
func hasLoadedSlotAd(_ adIdentifier: String) -> Bool -
Undocumented
Declaration
Objective-C
-(void) startLoadingSlotAd:(RichieAdsAd *)ad;Swift
func startLoadingSlotAd(_ ad: RichieAdsAd) -
Undocumented
Declaration
Objective-C
-(nullable UIImage *) placeholderImageForAdWithIdentifier:(NSString *)adIdentifier inOrientation:(RichieOrientation)orientation inSlot:(NSString *)slotIdentifier;Swift
func placeholderImageForAd(withIdentifier adIdentifier: String, in orientation: RichieOrientation, inSlot slotIdentifier: String) -> UIImage? -
Undocumented
Declaration
Objective-C
-(nullable UIImage *) placeholderImageForAdWithIdentifier:(nonnull NSString *)adIdentifier inOrientation:(RichieOrientation)orientation withContainerURL:(nonnull NSURL *)containerDir;Swift
func placeholderImageForAd(withIdentifier adIdentifier: String, in orientation: RichieOrientation, withContainerURL containerDir: URL) -> UIImage? -
Undocumented
Declaration
Objective-C
-(CGRect) rectForDrawingPlaceholderImage:(UIImage *)image inRect:(CGRect)targetRect;Swift
func rect(forDrawingPlaceholderImage image: UIImage, in targetRect: CGRect) -> CGRect -
Undocumented
Declaration
Objective-C
-(void) startLoadingAdWithIdentifier:(NSString *)adIdentifier fromURL:(NSURL *)url toContainerAtURL:(NSURL *)containerDir useBackgroundDownload:(BOOL)useBackgroundDownload;Swift
func startLoadingAd(withIdentifier adIdentifier: String, from url: URL, toContainerAt containerDir: URL, useBackgroundDownload: Bool) -
Undocumented
Declaration
Objective-C
-(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;Swift
func loadAd(withIdentifier adIdentifier: String, toContainerDir containerDir: URL, useBackgroundDownload: Bool, progress: ((Int64, Int64) -> Void)?) async throws -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL) hasLoadedAdWithIdentifier:(nonnull NSString *)adIdentifier toContainerDir:(nonnull NSURL *)containerDir;Swift
func hasLoadedAd(withIdentifier adIdentifier: String, toContainerDir containerDir: URL) -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL) hasLoadedAdWithIdentifier:(NSString *)adIdentifier fromURL:(NSURL *)adPackageURL toContainerAtURL:(NSURL *)containerDir;Swift
func hasLoadedAd(withIdentifier adIdentifier: String, from adPackageURL: URL, toContainerAt containerDir: URL) -> Bool -
Undocumented
Declaration
Objective-C
-(void) invalidate;Swift
func invalidate() -
Undocumented
Declaration
Objective-C
-(nullable RichieAdsSlotAdFlight *) nextFlightForSlotWithIdentifier:(nonnull NSString *)slotIdentifier;Swift
func nextFlightForSlot(withIdentifier slotIdentifier: String) -> RichieAdsSlotAdFlight? -
Undocumented
Declaration
Objective-C
-(nullable RichieAdsView *) viewWithFrame:(CGRect)frame forAdFlight:(nonnull RichieAdsSlotAdFlight *)slotAdFlight delegate:(nonnull id<RichieAdsViewDelegate>)delegate parameters:(nullable NSDictionary<NSString *, NSString *> *)parameters;Swift
func view(withFrame frame: CGRect, for slotAdFlight: RichieAdsSlotAdFlight, delegate: any RichieAdsViewDelegate, parameters: [String : String]?) -> RichieAdsView? -
Undocumented
Declaration
Objective-C
-(nullable RichieAdsView *) viewWithFrame:(CGRect)frame adIdentifier:(nonnull NSString *)adIdentifier containerURL:(nonnull NSURL *)containerDir delegate:(nonnull id<RichieAdsViewDelegate>)delegate parameters:(nullable NSDictionary *)parameters;Swift
func view(withFrame frame: CGRect, adIdentifier: String, containerURL containerDir: URL, delegate: any RichieAdsViewDelegate, parameters: [AnyHashable : Any]?) -> RichieAdsView? -
Undocumented
Declaration
Objective-C
-(void) deleteAdWithIdentifier:(nonnull NSString *)adIdentifier inContainerAtURL:(nonnull NSURL *)containerDir;Swift
func deleteAd(withIdentifier adIdentifier: String, inContainerAt containerDir: URL) -
Undocumented
Declaration
Objective-C
-(void) containerWillBeDeleted:(nonnull NSURL *)containerDir;Swift
func containerWillBeDeleted(_ containerDir: URL) -
Undocumented
Declaration
Objective-C
-(nullable RichieAdsAd *) adFromFlight:(RichieAdsSlotAdFlight *)flight;Swift
func ad(from flight: RichieAdsSlotAdFlight) -> RichieAdsAd?