SCPublicAdSlot
@interface SCPublicAdSlot : NSObject
This class holds public progress information about the adSlot
-
number Index of the current ad, regardless of its variant.
Declaration
Objective-C
@property (nonatomic) NSInteger currentClip; -
number Total number of ads within the current ad break, regardless of variants.
Declaration
Objective-C
@property (nonatomic) NSInteger totalClips; -
number Index of the current ad of variant COMMERCIAL. Defaulting to -1
Declaration
Objective-C
@property (nonatomic) NSInteger currentCommercial; -
number Total number of ads with variant COMMERCIAL within the current ad break
Declaration
Objective-C
@property (nonatomic) NSInteger totalCommercials; -
number Total duration of ads with variant COMMERCIAL within the current ad break
Declaration
Objective-C
@property (nonatomic) NSTimeInterval totalCommercialsDuration; -
number Current time of all ads with variant COMMERCIAL within the current ad break
Declaration
Objective-C
@property (nonatomic) NSTimeInterval totalCommercialsCurrentTime; -
Initalizer, takes a JSON formatted description string
Declaration
Objective-C
- (nonnull id)initWithDescription:(nonnull NSString *)description; -
Get the original JSON formatted description as NSDictionary
Declaration
Objective-C
- (nonnull NSDictionary *)publicAdSlotDescription;
SCPublicAdSlot Class Reference