SCAdSlot
@interface SCAdSlot : NSObject
This class is used to specify an AdSlot for the SCAdSequencer which is used for instream playback
-
Your adTag for this slot
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull adTag; -
Time when the slot should start (between 0 and 1 - eg.: 0.5 for the middle of the content video)
Declaration
Objective-C
@property (nonatomic) int relativeSlotTime; -
Specify your ad variants for the slot (opener, closer, bumper)
Declaration
Objective-C
@property (nonatomic, strong) SCAdVariants *_Nonnull variants; -
Specify your skipOffset (in seconds) for this slot -1 means no skipOffet
Declaration
Objective-C
@property (nonatomic) NSInteger skipOffset; -
Position of the adSlot (preRoll, midRoll, postRoll or standAlone)
Declaration
Objective-C
@property (nonatomic) enum SCBreakPosition breakPosition; -
Initializer
Declaration
Objective-C
- (nonnull instancetype)initWithAdTag:(nonnull NSString *)adTag relativeSlotTime:(id)relativeTime variants:(nullable SCAdVariants *)variants skipOffset:(NSInteger)skipOffset breakPosition:(SCBreakPosition)breakPosition;
SCAdSlot Class Reference