The OoyalaPulseManager.Listener provides a way for the OoyalaPulseManager to communicate with the host application.
More...
|
PulseSession | createPulseSession (OoyalaPulseManager manager, Video video, String pulseHost, ContentMetadata contentMetadata, RequestSettings requestSettings) |
| Requests the delegate to create a Pulse ad session, which contains information about all ads that should be played along with the current video content. More...
|
|
void | openClickThrough (OoyalaPulseManager manager, PulseVideoAd ad) |
| This method is called when the app should show the clickthrough link. More...
|
|
The OoyalaPulseManager.Listener provides a way for the OoyalaPulseManager to communicate with the host application.
This listener allows you to override the content metadata and request settings from Ooyala Backlot dynamically, and customize your response to clickthrough events.
PulseSession com.ooyala.android.pulseintegration.OoyalaPulseManager.Listener.createPulseSession |
( |
OoyalaPulseManager |
manager, |
|
|
Video |
video, |
|
|
String |
pulseHost, |
|
|
ContentMetadata |
contentMetadata, |
|
|
RequestSettings |
requestSettings |
|
) |
| |
Requests the delegate to create a Pulse ad session, which contains information about all ads that should be played along with the current video content.
The content metadata and request settings are pre-populated with information from Backlot according to this scheme. The implementation may freely override any or all of these properties.
- Parameters
-
manager | The Pulse Manager which creates and uses the session. |
video | The current video content. |
pulseHost | Your Pulse account host. |
contentMetadata | The content metadata object. |
requestSettings | The request settings object. |
- Returns
- The newly created Pulse ad session.
void com.ooyala.android.pulseintegration.OoyalaPulseManager.Listener.openClickThrough |
( |
OoyalaPulseManager |
manager, |
|
|
PulseVideoAd |
ad |
|
) |
| |
This method is called when the app should show the clickthrough link.
The app must trigger PulseVideoAd.adClickThroughTriggered() to notify the session if the clickthrough link has been opened. You can obtain the URL to open with PulseVideoAd.getClickthroughURL().
- Parameters
-
manager | The Pulse Manager from which this request originated |
ad | The Ad for which the clickthrough URL must be opened. |