Ads

RichieAds

  • Undocumented

    See more

    Declaration

    Swift

    public final class RichieAds : NSObject, RichieAdsProtocol
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface RichieAdsSlotAdFlight : NSObject
    
    -(nonnull instancetype) init NS_UNAVAILABLE;
    
    @end

    Swift

    class RichieAdsSlotAdFlight : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface RichieAdsView : UIView
    
    @property (nonatomic, readonly, nonnull) NSString *adIdentifier;
    
    -(void) didAppear; //!< MUST be called by host application when RichieAdsView becomes visible on screen and can be interacted by the user. NOTE: implementation cause heavy operations, don't call while app must stay responsive. Do not call this method until the view is actually visible on screen and the user is able to begin interacting with it. Calling this method prematurely will cause possible animations and timers of creatives to be wrong.
    -(void) didDisappear; //!< MUST be called by host application when RichieAdsView is not visible on screen and user cannot interact with it anymore. This method automatically does nothing if a modal viewController is presented over the -richieView:viewControllerForPresentingModalInAppBrowserForURL:.
    
    -(void) preloadAdContent; //!< Can be called to hint the RichieAdsView to preload HTML ad content without making it active. This operation can be heavy and it can cause performance issues and increased memory usage. Use with caution.
    
    -(void) invalidate; //!< SHOULD be called when view is removed from view hierarchy and discarded.
    
    -(void) setMaximumResizeSize:(CGSize)maximumResizeSize; //!< SHOULD be called when view is laid out, so it can provide the information for MRAID compliant creative.
    
    @property (nonatomic, readonly, weak, nullable) id<RichieAdsViewDelegate> delegate;
    
    @end

    Swift

    class RichieAdsView : UIView
  • Undocumented

    Declaration

    Objective-C

    extern NSString * _Nonnull const RichieAdsErrorDomain

    Swift

    let RichieAdsErrorDomain: String
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol RichieAdsViewDelegate <NSObject>
    
    @required
    
    -(nonnull UIViewController *) viewControllerForPresentingFromRichieAdsView:(nonnull RichieAdsView *)view;
    
    @optional
    
    -(void) richieAdsViewDidShowContent:(nonnull RichieAdsView *)view; //!< Called when RichieAdsView has loaded some content (placeholder image or HTML) for display.
    
    -(BOOL) richieAdsView:(nonnull RichieAdsView *)view wantsResizeToFrame:(CGRect)frame; //!< Return YES if the view will be (or already has been) resized to the supplied frame.
    -(void) richieAdsViewResizeEnded:(nonnull RichieAdsView *)view;
    
    @end

    Swift

    @MainActor protocol RichieAdsViewDelegate : NSObjectProtocol