Protocols
The following protocols are available globally.
-
This is the parent protocol for
See moreOOPulseVideoAd
,OOPulsePauseAd
andOOPulseCompanionAd
.Declaration
Objective-C
@protocol OOPulseAd <NSObject>
Swift
protocol OOPulseAd
-
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.
See moreDeclaration
Objective-C
@protocol OOPulseAdBreak <NSObject>
Swift
protocol OOPulseAdBreak : NSObjectProtocol
-
This protocol is used to handle companion banners, and notify the
OOPulseSession
about events regarding the companion banner.As a minimum, the session object must be notified that the companion banner was displayed:
-[OOPulseCompanionAd adDisplayed]
.Depending on your application, you may also need the clickthrough URL (
See more-[OOPulseAd clickthroughURL]
) to respond to viewers tapping a companion banner. -
This is the protocol for pause ads owned by a
OOPulseSession
.This protocol is used to notify the session about events regarding this ad, and provides access to relevant properties.
You must notify this object of the following events:
- The ad has been displayed:
-[OOPulsePauseAd adDisplayed]
- The ad has been closed by the user:
-[OOPulsePauseAd adClosed]
- The ad failed to play:
-[OOPulsePauseAd adFailedWithError:]
Depending on your application some of the other methods may need to be called in response to user interaction.
See more - The ad has been displayed:
-
This protocol is used to interact with an ad session.
You must notify this object of the following events:
- The content has started:
-[OOPulseSession contentStarted]
- The content playback position has changed:
-[OOPulseSession contentPositionChanged:]
- The content has played to completion:
-[OOPulseSession contentFinished]
The session will notify you through the delegate provided to
See more-[OOPulseSession startSessionWithDelegate:]
.Declaration
Objective-C
@protocol OOPulseSession <NSObject>
Swift
protocol OOPulseSession : NSObjectProtocol
- The content has started:
-
This delegate is used by
OOPulseSession
to communicate with your application.It will inform your application of the proper time to perform certain actions, or when some events have occurred.
See moreDeclaration
Objective-C
@protocol OOPulseSessionDelegate <NSObject>
Swift
protocol OOPulseSessionDelegate : NSObjectProtocol
-
This is the protocol for video ads owned by a
OOPulseSession
.This protocol is used to notify the session about events regarding this ad, and provides access to relevant properties.
You must notify this object of the following events:
- The ad has started:
-[OOPulseVideoAd adStarted]
- The ad playback position has changed:
-[OOPulseVideoAd adPositionChanged:]
- The ad has played to completion:
-[OOPulseVideoAd adFinished]
- The ad failed to play:
-[OOPulseVideoAd adFailedWithError:]
Depending on your application some of the other methods may need to be called in response to user interaction.
See more - The ad has started: