public final class VastProperties
extends java.lang.Object
Created by Natasha Garner on 09/09/2017.
Modifier and Type | Method and Description |
---|---|
static VastProperties |
createVastPropertiesForNonSkippableMedia(boolean isAutoPlay,
Position position)
This method enables the media player to create a new VAST properties instance for non-skippable media ad placement.
|
static VastProperties |
createVastPropertiesForSkippableMedia(float skipOffset,
boolean isAutoPlay,
Position position)
This method enables the media player to create a new VAST properties instance for skippable media ad placement.
|
Position |
getPosition()
Gets the player position indicated by these properties.
|
java.lang.Float |
getSkipOffset()
Gets the skip offset (number of seconds after which media is skippable).
|
boolean |
isAutoPlay()
Indicates if these properties are for an auto-play media or not.
|
boolean |
isSkippable()
Indicates if these properties are for skippable or non-skippable media.
|
JSONObject |
toJSON()
For OM SDK internal use only.
|
public static VastProperties createVastPropertiesForSkippableMedia(float skipOffset, boolean isAutoPlay, Position position)
skipOffset
- number of seconds before the skip button is presentedisAutoPlay
- whether the media will auto-play contentposition
- of the media in relation to other contentjava.lang.IllegalArgumentException
- if the supplied Position is null.public static VastProperties createVastPropertiesForNonSkippableMedia(boolean isAutoPlay, Position position)
isAutoPlay
- whether the media will auto-play contentposition
- of the media in relation to other contentjava.lang.IllegalArgumentException
- if the supplied Position is null.public boolean isSkippable()
public java.lang.Float getSkipOffset()
public boolean isAutoPlay()
public Position getPosition()
public JSONObject toJSON()