public class

SVSAdBreakEvent

extends Object
java.lang.Object
   ↳ com.smartadserver.android.instreamsdk.model.adbreak.event.SVSAdBreakEvent

Class Overview

Class representing events happening in the lifecycle of an SVSAdManager

Summary

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

Constants

public static final int EVENT_TYPE_AD_BREAK_COMPLETED

Constant indicating that the VAST ad break completed.

Constant Value: 2 (0x00000002)

public static final int EVENT_TYPE_AD_BREAK_FAILED_TO_START

Constant indicating that there is no ad break to play.

Constant Value: 0 (0x00000000)

public static final int EVENT_TYPE_AD_BREAK_READY

Constant indicating that the ad break is ready to start.

Constant Value: 3 (0x00000003)

public static final int EVENT_TYPE_AD_BREAK_STARTED

Constant indicating that the VAST ad break started.

Constant Value: 1 (0x00000001)

Public Constructors

public SVSAdBreakEvent (SVSAdBreakType adBreakType, int eventType, String message, int numberOfAdsPlayed, long adPlaybackDuration)

Constructs a new SVSAdBreakEvent object of the specified type and duration.

Public Methods

public SVSAdBreakType getAdBreakType ()

Returns the SASAdEvent ad break type.

public long getAdPlaybackTime ()

Returns the cumulated duration of ads played in the ad pod (in milliseconds) Relevant for EVENT_TYPE_AD_BREAK_COMPLETED

public int getEventType ()

Returns the SASAdEvent type.

public String getMessage ()

Returns the message describing this SVSAdBreakEvent

public int getPlayedAdsCount ()

Returns the number of ads actually played for an ad break. Relevant only for EVENT_TYPE_AD_BREAK_COMPLETED event type