Class POBVastPlayerConfig.POBVastPlayerUIConfig
-
- All Implemented Interfaces:
public class POBVastPlayerConfig.POBVastPlayerUIConfigImmutable configuration class to control visibility of video player UI controls. This allows fine-grained control over which player controls are shown or hidden for different ad placement types (e.g., Native Ads).
Use Builder to create instances of this class.
Example:
POBVastPlayerUIConfig config = new POBVastPlayerUIConfig.Builder() .showProgressBar(false) .showMuteButton(true) .setMuteButtonLayout(R.layout.pob_video_mute_button_compact) .build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPOBVastPlayerConfig.POBVastPlayerUIConfig.BuilderBuilder for creating immutable POBVastPlayerUIConfig instances.
All controls are visible by default. Use the setter methods to customize visibility.
-
Field Summary
Fields Modifier and Type Field Description public final intmuteButtonLayoutResId
-
Method Summary
Modifier and Type Method Description intgetMuteButtonLayoutResId()Gets the layout resource ID for the mute button. booleanisProgressBarVisible()Gets whether progress bar should be visible. booleanisMuteButtonVisible()Gets whether mute button should be visible. booleanisAdInfoButtonVisible()Gets whether ad info button should be visible. static booleancanLoadAdInfoIcon(@Nullable() POBVastPlayerConfig.POBVastPlayerUIConfig uiConfig)Null-safe helper to determine whether com.pubmatic.sdk.video.player.POBVastPlayer should attempt to load/add the Ad Info (DSA) icon/button. booleanisIndustryIconVisible()Gets whether industry icon should be visible. static booleancanLoadIndustryIcon(@Nullable() POBVastPlayerConfig.POBVastPlayerUIConfig uiConfig)Null-safe helper to determine whether com.pubmatic.sdk.video.player.POBVastPlayer should attempt to load/render the VAST Industry Icon. -
-
Method Detail
-
getMuteButtonLayoutResId
@LayoutRes() int getMuteButtonLayoutResId()
Gets the layout resource ID for the mute button.
- Returns:
the layout resource ID
-
isProgressBarVisible
boolean isProgressBarVisible()
Gets whether progress bar should be visible.
- Returns:
true if progress bar should be visible, false otherwise
-
isMuteButtonVisible
boolean isMuteButtonVisible()
Gets whether mute button should be visible.
- Returns:
true if mute button should be visible, false otherwise
-
isAdInfoButtonVisible
boolean isAdInfoButtonVisible()
Gets whether ad info button should be visible.
- Returns:
true if ad info button should be visible, false otherwise
-
canLoadAdInfoIcon
static boolean canLoadAdInfoIcon(@Nullable() POBVastPlayerConfig.POBVastPlayerUIConfig uiConfig)
Null-safe helper to determine whether com.pubmatic.sdk.video.player.POBVastPlayer should attempt to load/add the Ad Info (DSA) icon/button.
If
uiConfigisnull, it implies default behavior (i.e. show).
-
isIndustryIconVisible
boolean isIndustryIconVisible()
Gets whether industry icon should be visible.
- Returns:
true if industry icon should be visible, false otherwise
-
canLoadIndustryIcon
static boolean canLoadIndustryIcon(@Nullable() POBVastPlayerConfig.POBVastPlayerUIConfig uiConfig)
Null-safe helper to determine whether com.pubmatic.sdk.video.player.POBVastPlayer should attempt to load/render the VAST Industry Icon.
If
uiConfigisnull, it implies default behavior (i.e. show).
-
-
-
-