Package com.pubmatic.sdk.video
Class POBVastPlayerConfig.POBVastPlayerUIConfig.Builder
-
- All Implemented Interfaces:
public class POBVastPlayerConfig.POBVastPlayerUIConfig.BuilderBuilder for creating immutable POBVastPlayerUIConfig instances.
All controls are visible by default. Use the setter methods to customize visibility.
-
-
Constructor Summary
Constructors Constructor Description POBVastPlayerConfig.POBVastPlayerUIConfig.Builder()
-
Method Summary
Modifier and Type Method Description POBVastPlayerConfig.POBVastPlayerUIConfig.BuildershowProgressBar(boolean show)Sets visibility of the progress bar (seek bar). POBVastPlayerConfig.POBVastPlayerUIConfig.BuildershowMuteButton(boolean show)Sets visibility of the mute/unmute button. POBVastPlayerConfig.POBVastPlayerUIConfig.BuildershowAdInfoButton(boolean show)Sets visibility of the ad info button. POBVastPlayerConfig.POBVastPlayerUIConfig.BuildershowIndustryIcon(boolean show)Sets visibility of the industry icon (from VAST). POBVastPlayerConfig.POBVastPlayerUIConfig.BuildersetMuteButtonLayout(@LayoutRes() int layoutResId)Sets the layout resource for the mute button. POBVastPlayerConfig.POBVastPlayerUIConfigbuild()Builds and returns an immutable POBVastPlayerUIConfig instance. -
-
Method Detail
-
showProgressBar
@NonNull() POBVastPlayerConfig.POBVastPlayerUIConfig.Builder showProgressBar(boolean show)
Sets visibility of the progress bar (seek bar).
- Parameters:
show- true to show progress bar, false to hide- Returns:
this builder instance for method chaining
-
showMuteButton
@NonNull() POBVastPlayerConfig.POBVastPlayerUIConfig.Builder showMuteButton(boolean show)
Sets visibility of the mute/unmute button.
- Parameters:
show- true to show mute button, false to hide- Returns:
this builder instance for method chaining
-
showAdInfoButton
@NonNull() POBVastPlayerConfig.POBVastPlayerUIConfig.Builder showAdInfoButton(boolean show)
Sets visibility of the ad info button.
- Parameters:
show- true to show ad info button, false to hide- Returns:
this builder instance for method chaining
-
showIndustryIcon
@NonNull() POBVastPlayerConfig.POBVastPlayerUIConfig.Builder showIndustryIcon(boolean show)
Sets visibility of the industry icon (from VAST).
- Parameters:
show- true to show industry icon, false to hide- Returns:
this builder instance for method chaining
-
setMuteButtonLayout
@NonNull() POBVastPlayerConfig.POBVastPlayerUIConfig.Builder setMuteButtonLayout(@LayoutRes() int layoutResId)
Sets the layout resource for the mute button.
The SDK provides two predefined layouts:
- pob_video_mute_button_default: Standard button with circular background and 24dp icons
- pob_video_mute_button_compact: 20dp button without background and 16dp icons
- Parameters:
layoutResId- the layout resource ID for the mute button- Returns:
this builder instance for method chaining
-
build
@NonNull() POBVastPlayerConfig.POBVastPlayerUIConfig build()
Builds and returns an immutable POBVastPlayerUIConfig instance.
- Returns:
immutable POBVastPlayerUIConfig instance
-
-
-
-