OOPulseAdBreak
Objective-C
@protocol OOPulseAdBreak <NSObject>
Swift
protocol OOPulseAdBreak : NSObjectProtocol
This is the protocol for an ad break owned by an OOPulseSession
.
An ad break is a collection of ads that are to be displayed in sequence.
This protocol is used to request information regarding the ad break, or to stop the ad break forcefully.
-
The number of playable ads remaining in this ad break.
Declaration
Objective-C
- (NSInteger)playableAdsRemaining;
Swift
func playableAdsRemaining() -> Int
-
The number of playable ads in this ad break.
Declaration
Objective-C
- (NSInteger)playableAdsTotal;
Swift
func playableAdsTotal() -> Int
-
The position of the ad break.
-
Forcefully stop the ad break.
This may be called at any time while the ad break is active.
After the ad break is stopped the session continues with
-[OOPulseSessionDelegate startContentPlayback]
, or-[OOPulseSessionDelegate sessionEnded]
if the content has already finished.Declaration
Objective-C
- (void)stopAdBreak;
Swift
func stop()