Protocols

The following protocols are available globally.

  • This is the interface for ad breaks owned by INPulseLiveSession

    An ad break is a collection of ads that are to be displayed in sequence. INPulseLiveAdBreak are part of the “live” API’s, which are better suited for live/streaming video setups. For live breaks, the SDK will not notify the integration when to trigger ads, that responsibility is on the integration.

    This @protocol is used to request information regarding the ad break.

    See more

    Declaration

    Objective-C

    @protocol INPulseLiveAdBreak <NSObject>

    Swift

    protocol INPulseLiveAdBreak : NSObjectProtocol
  • This protocol is used to interact with a live session.

    The live session does not trigger ads based on content progress and video player state like the standard OOPulseSession. Instead, it makes the ad break data available to the integration and it’s then up to the integration code to get the list of ads from each INPulseLiveAdBreak and trigger the ads when desired. The live session currently only supports linear video ads.

    See more

    Declaration

    Objective-C

    @protocol INPulseLiveSession <NSObject>

    Swift

    protocol INPulseLiveSession : NSObjectProtocol
  • Delegate is used by INPulseLiveSession to communicate with your application.

    See more

    Declaration

    Objective-C

    @protocol INPulseLiveSessionDelegate <NSObject>

    Swift

    protocol INPulseLiveSessionDelegate : NSObjectProtocol
  • This is the parent protocol for OOPulseVideoAd, OOPulsePauseAd and OOPulseCompanionAd.

    See more

    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 more

    Declaration

    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 (-[OOPulseAd clickthroughURL]) to respond to viewers tapping a companion banner.

    See more

    Declaration

    Objective-C

    @protocol OOPulseCompanionAd <OOPulseAd>

    Swift

    protocol OOPulseCompanionAd : OOPulseAd
  • 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:

    Depending on your application some of the other methods may need to be called in response to user interaction.

    See more

    Declaration

    Objective-C

    @protocol OOPulsePauseAd <OOPulseAd>

    Swift

    protocol OOPulsePauseAd : OOPulseAd
  • This protocol is used to interact with an ad session.

    You must notify this object of the following events:

    The session will notify you through the delegate provided to -[OOPulseSession startSessionWithDelegate:].

    See more

    Declaration

    Objective-C

    @protocol OOPulseSession <NSObject>

    Swift

    protocol OOPulseSession : NSObjectProtocol
  • 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 more

    Declaration

    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:

    Depending on your application some of the other methods may need to be called in response to user interaction.

    See more

    Declaration

    Objective-C

    @protocol OOPulseVideoAd <OOPulseAd>

    Swift

    protocol OOPulseVideoAd : OOPulseAd