SASAdChoicesView
Objective-C
@interface SASAdChoicesView : UIButton
Swift
class SASAdChoicesView : UIButton
Provides an Ad Choices button.
The Ad Choices button allows you to indicate easily that the content of the cell is a native ad and can redirect the user on a web page explaining how its data are used. It will automatically displays the standard Ad Choices icon.
Note
Displaying this Ad Choices button can be required when using some third party mediation SDK, check the documentation of each mediation SDK for more informations.-
Register the native ad that is linked with the Ad Choices button.
Registering the right native ad to each SASAdChoicesView instances is mandatory because it will be used to redirect the user on the right landing page.
Declaration
Objective-C
- (void)registerNativeAd:(nonnull SASNativeAd *)nativeAd modalParentViewController: (nonnull UIViewController *)modalParentViewController;
Swift
func register(_ nativeAd: SASNativeAd, modalParentViewController: UIViewController)
Parameters
nativeAd
The native ad linked with this Ad Choices button.
modalParentViewController
The parent view controller of the modal view that will be displayed.