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 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 Ad Manager reservations.

Use VideoController.isCustomControlsEnabled() to verify if a loaded video ad has custom video controls enabled.

After verification, you can then use VideoController.play(), VideoController.pause(), and VideoController.mute(boolean) to control the video ad.

public VideoOptions.Builder setStartMuted (boolean startMuted)

Sets the initial mute state of the video.