OOPulseSessionDelegate Protocol Reference

Conforms to NSObject
Declared in OOPulseSessionDelegate.h

Overview

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.

Actions

– startContentPlayback required method

When called you should start (or resume) playback of the content.

- (void)startContentPlayback

Declared In

OOPulseSessionDelegate.h

– startAdBreak: required method

When called you should pause playback of the content (if it was playing), and prepare your user interface for video ad playback.

- (void)startAdBreak:(id<OOPulseAdBreak>)adBreak

Parameters

adBreak

The OOPulseAdBreak that has started.

Discussion

You will be notified of each ad to display through [OOPulseSessionDelegate startAdPlaybackWithAd:timeout:].

Declared In

OOPulseSessionDelegate.h

– startAdPlaybackWithAd:timeout: required method

When called you should start playback of the given ad.

- (void)startAdPlaybackWithAd:(id<OOPulseVideoAd>)ad timeout:(NSTimeInterval)timeout

Parameters

ad

The OOPulseVideoAd to be displayed.

timeout

The time you have until the first frame of the ad has displayed. If this was not possible, you are responsible for calling [OOPulseVideoAd adFailedWithError:] with OOPulseAdErrorTimedOut.

Discussion

You are responsible for notifying the ad when certain events have occurred.

Declared In

OOPulseSessionDelegate.h

– showPauseAd:

When called you should display the provided pause ad.

- (void)showPauseAd:(id<OOPulsePauseAd>)ad

Parameters

ad

The OOPulsePauseAd to be displayed.

Discussion

You are responsible for notifying the ad when certain events have occurred.

Declared In

OOPulseSessionDelegate.h

Events

– sessionEnded required method

The session has ended.

- (void)sessionEnded

Discussion

No further delegate methods will be called.

Declared In

OOPulseSessionDelegate.h

– illegalOperationOccurredWithError: required method

An illegal operation has occurred.

- (void)illegalOperationOccurredWithError:(NSError *)error

Parameters

error

The error that occurred.

Discussion

Most likely protocol methods in OOPulseSession or OOPulseVideoAd were called when they were not expected.

One way to recover from this would be to stop the current session, and continue playing the content.

Declared In

OOPulseSessionDelegate.h