Package com.castlabs.android.adverts
Class AdPodData
java.lang.Object
com.castlabs.android.adverts.AdPodData
Ad Pod metadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe position of the ad within the pod.doubleReturns the maximum duration of the pod in seconds.doubleReturns the content time offset at which the current ad pod was scheduled.intReturns the total number of ads contained within this pod, including bumpers. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
adPosition
public int adPositionThe position of the ad within the pod. The value returned is one-based, for example, 1 of 2, 2 of 2, etc. If the ad is not part of a pod, this will return 1. -
totalAds
public int totalAdsReturns the total number of ads contained within this pod, including bumpers. If the ad is not part of a pod, this will return 1. -
maxDuration
public double maxDurationReturns the maximum duration of the pod in seconds. For unknown duration, -1 is returned. -
timeOffset
public double timeOffsetReturns the content time offset at which the current ad pod was scheduled. For preroll pod, 0 is returned. For midrolls, the scheduled time is returned in seconds. For postroll, -1 is returned. Defaults to 0 if this ad is not part of a pod, or the pod is not part of an ad playlist.
-
-
Constructor Details
-
AdPodData
public AdPodData()
-
-
Method Details