Builder for VideoOptions
.
Public Constructor Summary
Public Method Summary
VideoOptions |
build()
Constructs a
VideoOptions
object with the specified attributes.
|
VideoOptions.Builder |
setClickToExpandRequested(boolean clickToExpandRequested)
Sets whether the AdLoader should request ads with the Click to Expand behavior
enabled.
|
VideoOptions.Builder |
setCustomControlsRequested(boolean customControlsRequested)
Requests custom video controls for video ads.
|
VideoOptions.Builder |
setStartMuted(boolean startMuted)
Sets the initial mute state of the video.
|
Inherited Method Summary
Public Constructors
public VideoOptions.Builder ()
Public Methods
public VideoOptions build ()
Constructs a VideoOptions
object with the specified attributes.
public VideoOptions.Builder setClickToExpandRequested (boolean clickToExpandRequested)
Sets whether the AdLoader should request ads with the Click to Expand behavior enabled.
public VideoOptions.Builder setCustomControlsRequested (boolean customControlsRequested)
Requests custom video controls for video ads.
This feature is currently only available for DoubleClick for Publishers reservations.
Use
isCustomControlsEnabled()
to verify if a loaded video ad has custom video
controls enabled.
After verification, you can then use play()
,
pause()
,
and mute(boolean)
to control the video ad.
public VideoOptions.Builder setStartMuted (boolean startMuted)
Sets the initial mute state of the video.