SASNativeAdViewBinder
Objective-C
@interface SASNativeAdViewBinder : NSObject
Swift
class SASNativeAdViewBinder : NSObject
Class used to bind a view to a native ad.
Note
You cannot instantiate this class directly, you must use theSASNativeAdViewBinderBuilder
class instead.
-
The view containing of the other views of the native ad.
Declaration
Objective-C
@property (readonly) UIView *_Nonnull baseView;
Swift
var baseView: UIView { get }
-
The label displaying the ad title if any, nil otherwise.
Declaration
Objective-C
@property (readonly, nullable) UILabel *titleLabel;
Swift
var titleLabel: UILabel? { get }
-
The label displaying the ad boy if any, nil otherwise.
Declaration
Objective-C
@property (readonly, nullable) UILabel *bodyLabel;
Swift
var bodyLabel: UILabel? { get }
-
The button displaying the ad call to action if any, nil otherwise.
Declaration
Objective-C
@property (readonly, nullable) UIButton *callToActionButton;
Swift
var callToActionButton: UIButton? { get }
-
The label displaying the ad advertiser if any, nil otherwise.
Declaration
Objective-C
@property (readonly, nullable) UILabel *advertiserLabel;
Swift
var advertiserLabel: UILabel? { get }
-
The rating bar displaying the ad rating if any, nil otherwise.
Note
You can use the SASRatingBarView or any third party view implementing the SASRatingBar protocol.Declaration
Objective-C
@property (readonly, nullable) UIView<SASRatingBar> *ratingBar;
Swift
var ratingBar: (any UIView & SASRatingBar)? { get }
-
The view displaying the ad icon if any, nil otherwise.
Declaration
Objective-C
@property (readonly, nullable) UIView *iconView;
Swift
var iconView: UIView? { get }
-
The view displaying the ad main content if any, nil otherwise.
Declaration
Objective-C
@property (readonly, nullable) UIView *mainView;
Swift
var mainView: UIView? { get }
-
The view that will contain the ad customer feedback button if any, nil otherwise.
Note
Displaying the customer feedback button is mandatory. If no container is set, the customer feedback button will be added in the top right corner of the base view.Declaration
Objective-C
@property (readonly, nullable) UIView *customerFeedbackContainerView;
Swift
var customerFeedbackContainerView: UIView? { get }