Class OmidConfig.Builder
- java.lang.Object
-
- com.jwplayer.pub.api.configuration.ads.OmidConfig.Builder
-
- Enclosing class:
- OmidConfig
public static class OmidConfig.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OmidConfig.Builder
allowedVendors(java.util.List<java.lang.String> allowedVendors)
A list of allowed verification vendors.OmidConfig
build()
Builds the OmidConfig objectOmidConfig.Builder
customReferenceData(java.lang.String customReferenceData)
Set the Custom Reference data for all OMID sessions.OmidConfig.Builder
isOmidEnabled(boolean isOmidEnabled)
Enable or disable OMID.
-
-
-
Method Detail
-
customReferenceData
public OmidConfig.Builder customReferenceData(@Nullable java.lang.String customReferenceData)
Set the Custom Reference data for all OMID sessions.
-
isOmidEnabled
public OmidConfig.Builder isOmidEnabled(boolean isOmidEnabled)
Enable or disable OMID. Used to prevent OMID setup in scenarios where you need to implement a killswitch. Default value is true
-
allowedVendors
public OmidConfig.Builder allowedVendors(java.util.List<java.lang.String> allowedVendors)
A list of allowed verification vendors. This list will be compared to the list of verification vendors reported in the ad response and we will only load approved vendors. Make sure that the vendor name used here is the same as the vendor-key reported in the ad response.
Important: An empty or null list means that we will allow all vendors
-
build
public OmidConfig build()
Builds the OmidConfig object
-
-