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 (readwrite, strong, nonatomic) 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 (assign, readwrite, nonatomic) CGFloat relativeSlotTime;
  • Specify your ad variants for the slot (opener, closer, bumper)

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SCAdVariants *_Nonnull variants;
  • Specify your skipOffset (in seconds) for this slot -1 means no skipOffet

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger skipOffset;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic)           enum SCBreakPosition breakPosition
  • Initializer

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAdTag:(nonnull NSString *)adTag
                         relativeSlotTime:(CGFloat)relativeTime
                                 variants:(nullable SCAdVariants *)variants
                               skipOffset:(NSInteger)skipOffset
                            breakPosition:(SCBreakPosition)breakPosition;