VideoOptions.Builder

public static final class VideoOptions.Builder extends Object

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.

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面