java.lang.Object | |
↳ | com.smartadserver.android.instreamsdk.model.adbreak.event.SVSAdBreakEvent |
Class representing events happening in the lifecycle of an SVSAdManager
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | EVENT_TYPE_AD_BREAK_COMPLETED | Constant indicating that the VAST ad break completed. | |||||||||
int | EVENT_TYPE_AD_BREAK_FAILED_TO_START | Constant indicating that there is no ad break to play. | |||||||||
int | EVENT_TYPE_AD_BREAK_READY | Constant indicating that the ad break is ready to start. | |||||||||
int | EVENT_TYPE_AD_BREAK_STARTED | Constant indicating that the VAST ad break started. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SVSAdBreakEvent(SVSAdBreakType adBreakType, int eventType, String message, int numberOfAdsPlayed, long adPlaybackDuration)
Constructs a new SVSAdBreakEvent object of the specified type and duration.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SVSAdBreakType |
getAdBreakType()
Returns the SASAdEvent ad break type.
| ||||||||||
long |
getAdPlaybackTime()
Returns the cumulated duration of ads played in the ad pod (in milliseconds)
Relevant for EVENT_TYPE_AD_BREAK_COMPLETED
| ||||||||||
int |
getEventType()
Returns the SASAdEvent type.
| ||||||||||
String |
getMessage()
Returns the message describing this
SVSAdBreakEvent
| ||||||||||
int |
getPlayedAdsCount()
Returns the number of ads actually played for an ad break.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constant indicating that the VAST ad break completed.
Constant indicating that there is no ad break to play.
Constant indicating that the ad break is ready to start.
Constant indicating that the VAST ad break started.
Constructs a new SVSAdBreakEvent object of the specified type and duration.
Returns the cumulated duration of ads played in the ad pod (in milliseconds) Relevant for EVENT_TYPE_AD_BREAK_COMPLETED
Returns the SASAdEvent type.
Returns the number of ads actually played for an ad break. Relevant only for EVENT_TYPE_AD_BREAK_COMPLETED event type