IMAAdBreakInfo Class Reference

IMAAdBreakInfo Class Reference

Overview

Simple data object containing ad break metadata.

Inherits <NSObject>.

Properties

NSInteger totalAds
 Total number of ads in this ad break. More...
 
NSTimeInterval duration
 The duration of the ad break in seconds, not including slate. More...
 
NSTimeInterval adPeriodDuration
 The expected duration of the ad period in seconds. More...
 
NSInteger adBreakIndex
 The index of the ad break 0...N is returned regardless of whether the ad is a pre-, mid-, or post-roll. More...
 
NSTimeInterval timeOffset
 The stream time at which the current ad break was scheduled to start. More...
 

Property Documentation

- (NSInteger) totalAds
readnonatomicassign

Total number of ads in this ad break.

Will be 1 for standalone ads.

- (NSTimeInterval) duration
readnonatomicassign

The duration of the ad break in seconds, not including slate.

- (NSTimeInterval) adPeriodDuration
readnonatomicassign

The expected duration of the ad period in seconds.

This includes the duration of any slate that may be present in the ad period. This may differ from the actual duration of the ad period if the ad period is exited early for any reason.

- (NSInteger) adBreakIndex
readnonatomicassign

The index of the ad break 0...N is returned regardless of whether the ad is a pre-, mid-, or post-roll.

Defaults to -1 if this ad is not part of an ad break, or the break is not part of an ad playlist, or the stream is not VOD.

- (NSTimeInterval) timeOffset
readnonatomicassign

The stream time at which the current ad break was scheduled to start.

Defaults to 0 if this ad is not part of an ad break, or the break is not part of an ad playlist, or the stream is not VOD.

Send feedback about...

IMA DAI SDK for tvOS
Need help? Visit our support page.