Package com.castlabs.android.adverts
Class Ad
java.lang.Object
com.castlabs.android.adverts.Ad
Ad container.
- Since:
- 3.2.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionAd Asset Urifinal AdPodData
Information related to the adPod this Ad belongs toAd Tag Uriint
The Ad bitrate in bits per secondlong
Ad duration in milliseconds orC.TIME_UNSET
Ad Idboolean
Returns whether the Ad is Skippableboolean
Returns whether the Ad IMA UI is disabledint
Player typeint
Ad position in the stream, one ofSdkConsts.AdPosition
long
Ad position in milliseconds within the window in case ofSdkConsts.AD_EMBEDDED
stream type orC.TIME_UNSET
double
The number of seconds of playback before the ad becomes skippable.int
Stream typeAd title -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
position
public int positionAd position in the stream, one ofSdkConsts.AdPosition
-
durationMs
public long durationMsAd duration in milliseconds orC.TIME_UNSET
-
positionMs
public long positionMsAd position in milliseconds within the window in case ofSdkConsts.AD_EMBEDDED
stream type orC.TIME_UNSET
-
id
Ad Id -
title
Ad title -
adTagUri
Ad Tag Uri -
adAssetUri
Ad Asset Uri -
streamType
public int streamTypeStream type -
playerType
public int playerTypePlayer type -
skipTimeOffset
public double skipTimeOffsetThe number of seconds of playback before the ad becomes skippable. -
bitrate
public int bitrateThe Ad bitrate in bits per second -
isSkippable
public boolean isSkippableReturns whether the Ad is Skippable -
isUiDisabled
public boolean isUiDisabledReturns whether the Ad IMA UI is disabled -
adPod
Information related to the adPod this Ad belongs to
-
-
Constructor Details
-
Ad
public Ad()Default constructor for Ad.
-
-
Method Details