Package com.pubmatic.sdk.webrendering.ui
Class POBBannerConfig.ConfigBuilder
-
- All Implemented Interfaces:
public class POBBannerConfig.ConfigBuilderAn internal builder class for Banner config
-
-
Constructor Summary
Constructors Constructor Description POBBannerConfig.ConfigBuilder()
-
Method Summary
Modifier and Type Method Description static POBBannerConfigcreateBannerConfig(@Nullable() JSONObject rawBid, @NonNull() String placementType)Builds the Banner config from raw bid Json response or returns default banner config POBBannerConfigbuild()Build POBVastPlayerConfig with provided params POBBannerConfig.ConfigBuildersetBackButtonEnabled(boolean backButtonEnabled)Method to set hardware back button enabled or not POBBannerConfig.ConfigBuildersetSkipAfter(int skipAfter)Number of seconds a display ad must be shown before skipping is enabled Default skip value is 5 secs -
-
Method Detail
-
createBannerConfig
@NonNull() static POBBannerConfig createBannerConfig(@Nullable() JSONObject rawBid, @NonNull() String placementType)
Builds the Banner config from raw bid Json response or returns default banner config
- Parameters:
rawBid- the raw bid of JSONObject typeplacementType- placement type- Returns:
if banner is present and not empty in bid then method returns new bannerConfig object else returns default banner config
-
build
POBBannerConfig build()
Build POBVastPlayerConfig with provided params
- Returns:
instance of POBBannerConfig
-
setBackButtonEnabled
POBBannerConfig.ConfigBuilder setBackButtonEnabled(boolean backButtonEnabled)
Method to set hardware back button enabled or not
-
setSkipAfter
POBBannerConfig.ConfigBuilder setSkipAfter(int skipAfter)
Number of seconds a display ad must be shown before skipping is enabled Default skip value is 5 secs
- Parameters:
skipAfter- in seconds- Returns:
updated instance of ConfigBuilder
-
-
-
-