com.ooyala.android.item.AdSpot Class Referenceabstract

The base of OoyalaAdSpot, VastAdSpot and other type of ad spot. More...

Inheritance diagram for com.ooyala.android.item.AdSpot:
Comparable com.ooyala.android.freewheelsdk.FWAdSpot com.ooyala.android.item.OoyalaManagedAdSpot com.ooyala.android.ads.ooyala.OoyalaAdSpot com.ooyala.android.ads.vast.VASTAdSpot com.ooyala.android.ads.vast.VMAPAdSpot

Public Member Functions

abstract int getTime ()
 Fetch the time at which this AdSpot should play. More...
 
int getPriority ()
 Fetch the priority for the adspots that have same time. More...
 
int compareTo (AdSpot ad)
 compare two ad spots based on time, which is required to properly sort ad spots. More...
 
boolean needsPauseContent ()
 

Detailed Description

The base of OoyalaAdSpot, VastAdSpot and other type of ad spot.

Member Function Documentation

int com.ooyala.android.item.AdSpot.compareTo ( AdSpot  ad)

compare two ad spots based on time, which is required to properly sort ad spots.

Parameters
adthe ad to be compared
int com.ooyala.android.item.AdSpot.getPriority ( )

Fetch the priority for the adspots that have same time.

The ad spot with higher priority(smaller value) will be played first. subclass should override the default implementation.

Returns
The priority .
abstract int com.ooyala.android.item.AdSpot.getTime ( )
abstract

Fetch the time at which this AdSpot should play.

Returns
The time at which this AdSpot should play in milliseconds.
boolean com.ooyala.android.item.AdSpot.needsPauseContent ( )
Returns
if the ad spot needs to pause content and play an ad stream return true if content needs to be paused, e.g. VAST Linear ads false if content does not need to be paused, e.g. VAST Nonlinear ads