SASBannerView

Objective-C

@interface SASBannerView : UIView

Swift

class SASBannerView : UIView

A view that loads and displays a banner creative.

  • The banner view delegate if any, nil otherwise.

    Declaration

    Objective-C

    @property (weak, nullable) id<SASBannerViewDelegate> delegate;

    Swift

    weak var delegate: (any SASBannerViewDelegate)? { get set }
  • The modal parent view controller of the current banner.

    This controller will be used as root controller by the SDK if it needs to display a fullscreen controller.

    Note

    You should always set a valid modal parent view controller, otherwise most post-click interactions will not be able to work properly (post-click modal, StoreKit, …).

    Declaration

    Objective-C

    @property (weak, nullable) UIViewController *modalParentViewController;

    Swift

    weak var modalParentViewController: UIViewController? { get set }
  • A SASParallaxMargins instance representing the margins to apply to the parallax ads.

    To avoid having your parallax ads displayed behind others views, such as navigation bar or tab bar, set the exact size you want for each margin.

    Default value: 0 margin for each side.

    Declaration

    Objective-C

    @property (strong) SASParallaxMargins *_Nonnull parallaxMargins;

    Swift

    var parallaxMargins: SASParallaxMargins { get set }
  • Attempt to load an ad using the provided ad placement.

    Declaration

    Objective-C

    - (void)loadAdWithAdPlacement:(nonnull SASAdPlacement *)adPlacement;

    Swift

    func loadAd(with adPlacement: SASAdPlacement)

    Parameters

    adPlacement

    The ad placement used to load the ad.