public class

SVSAdPlayerConfigurationDisplayOptions

extends Object
implements Parcelable Serializable
java.lang.Object
   ↳ com.smartadserver.android.instreamsdk.model.adplayerconfig.SVSAdPlayerConfigurationDisplayOptions

Class Overview

This class holds the configuration options related to the appearance of the ad player

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
SVSAdPlayerConfigurationDisplayOptions()
Default constructor with default values
SVSAdPlayerConfigurationDisplayOptions(String json)
Constructor from a JSON
Public Methods
boolean isEnableCountdownSkip()
Returns whether a countdown until the ad can be skipped should be displayed
boolean isEnableCountdownVideo()
Returns whether a countdown until the end of the ad break should be displayed
boolean isEnableFullscreen()
Returns whether the fullscreen button should be displayed for the ad player

If is TV, we desable the possibility to update the fullscreen

boolean isRestrictControlsToAdPlayerBounds()
Returns whether the ad player controls must fit in the video frame or can expand in the parent container
void setEnableCountdownSkip(boolean enableCountdownSkip)
Sets whether a countdown until the ad can be skipped should be displayed
void setEnableCountdownVideo(boolean enableCountdownVideo)
Sets whether a countdown until the end of the ad break should be displayed
void setEnableFullscreen(boolean enableFullscreen)
Sets whether the fullscreen button should be displayed for the ad player If the content player is forced in a fullscreen state, this should be set to false to prevent undesired interactions
void setRestrictControlsToAdPlayerBounds(boolean restrictControlsToAdPlayerBounds)
Sets whether the ad player controls must fit in the video frame or can expand in the parent container
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public SVSAdPlayerConfigurationDisplayOptions ()

Default constructor with default values

public SVSAdPlayerConfigurationDisplayOptions (String json)

Constructor from a JSON

Throws
JSONException

Public Methods

public boolean isEnableCountdownSkip ()

Returns whether a countdown until the ad can be skipped should be displayed

public boolean isEnableCountdownVideo ()

Returns whether a countdown until the end of the ad break should be displayed

public boolean isEnableFullscreen ()

Returns whether the fullscreen button should be displayed for the ad player

If is TV, we desable the possibility to update the fullscreen

public boolean isRestrictControlsToAdPlayerBounds ()

Returns whether the ad player controls must fit in the video frame or can expand in the parent container

public void setEnableCountdownSkip (boolean enableCountdownSkip)

Sets whether a countdown until the ad can be skipped should be displayed

public void setEnableCountdownVideo (boolean enableCountdownVideo)

Sets whether a countdown until the end of the ad break should be displayed

public void setEnableFullscreen (boolean enableFullscreen)

Sets whether the fullscreen button should be displayed for the ad player If the content player is forced in a fullscreen state, this should be set to false to prevent undesired interactions

public void setRestrictControlsToAdPlayerBounds (boolean restrictControlsToAdPlayerBounds)

Sets whether the ad player controls must fit in the video frame or can expand in the parent container