VideoOptions.Builder

public final class VideoOptions.Builder 

Builder for VideoOptions .

Summary

Public constructors

Builder ()

Public methods

VideoOptions
build ()

Constructs a VideoOptions object with the specified attributes.

VideoOptions.Builder
@ CanIgnoreReturnValue
setClickToExpandRequested (boolean clickToExpandRequested)

Sets whether the AdLoader should request ads with the Click to Expand behavior enabled.

VideoOptions.Builder
@ CanIgnoreReturnValue
setCustomControlsRequested (boolean customControlsRequested)

Requests custom video controls for video ads.

VideoOptions.Builder
@ CanIgnoreReturnValue
setStartMuted (boolean startMuted)

Sets the initial mute state of the video.

Public constructors

Builder

public  Builder 
()

Public methods

build

public  VideoOptions 
 build 
()

Constructs a VideoOptions object with the specified attributes.

setClickToExpandRequested

@ CanIgnoreReturnValue 

public  VideoOptions.Builder setClickToExpandRequested (boolean clickToExpandRequested)

Sets whether the AdLoader should request ads with the Click to Expand behavior enabled.

setCustomControlsRequested

@ CanIgnoreReturnValue 

public  VideoOptions.Builder setCustomControlsRequested (boolean customControlsRequested)

Requests custom video controls for video ads.

This feature is currently only available for Ad Manager 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 to control the video ad.

setStartMuted

@ CanIgnoreReturnValue 

public  VideoOptions.Builder setStartMuted (boolean startMuted)

Sets the initial mute state of the video.

Create a Mobile Website
View Site in Mobile | Classic
Share by: