SliderAd
@objc(YMASliderAd)
public protocol SliderAd
Undocumented
-
An object implementing the
SliderAdDelegateprotocol that receives events triggered by the user’s interaction with the ad.Declaration
Swift
var delegate: SliderAdDelegate? { get set } -
Any string in the ad (set in the Partner interface).
Warning
This property is only used for working with ADFOX.Declaration
Swift
var info: String? { get } -
Information about additional ad attributes
Declaration
Swift
var adAttributes: AdAttributes? { get } -
An array with nested ads.
Declaration
Swift
var ads: [NativeAd] { get } -
Creative ID from the ad response.
Declaration
Swift
var creativeID: String? { get } -
Campaign ID from the ad response.
Declaration
Swift
var campaignID: String? { get } -
Loads images if manual loading is selected.
Warning
All images are cached, but they can be deleted at any time, so you need to call this method before every ad impression.Declaration
Swift
func loadImages() -
Sets values of all ad assets to native ad view, installs impression and click handlers.
Declaration
Swift
@objc(bindWithAdView:error:) func bind(with adView: YMANativeAdView) throwsParameters
adViewNativeAdViewwith views for ad assets.errorBinding error. - seealso:
NativeAdErrorCodefor error codes.Return Value
trueif binding succeeded, otherwisefalse.