public final class AdSessionContext
extends java.lang.Object
Created by Natasha Garner on 01/08/2017.
Modifier and Type | Method and Description |
---|---|
static AdSessionContext |
createHtmlAdSessionContext(Partner partner,
android.webkit.WebView webView,
java.lang.String customReferenceData)
Create a new "html" ad session context.
|
static AdSessionContext |
createNativeAdSessionContext(Partner partner,
java.lang.String omidJsScriptContent,
java.util.List<VerificationScriptResource> verificationScriptResources,
java.lang.String customReferenceData)
Create a new "native" ad session context.
|
com.iab.omid.library.adsession.AdSessionContextType |
getAdSessionContextType() |
java.lang.String |
getCustomReferenceData() |
java.lang.String |
getOmidJsScriptContent() |
Partner |
getPartner() |
java.util.List<VerificationScriptResource> |
getVerificationScriptResources() |
android.webkit.WebView |
getWebView() |
public static AdSessionContext createHtmlAdSessionContext(Partner partner, android.webkit.WebView webView, java.lang.String customReferenceData)
partner
- details of the integration partner responsible for the ad sessionwebView
- responsible for serving the ad contentcustomReferenceData
- containing reference data specific to the integration partner.java.lang.IllegalArgumentException
- if the supplied partner is null.java.lang.IllegalArgumentException
- if the supplied webView is null.java.lang.IllegalArgumentException
- if customReferenceData is greater than 256 characters.Partner
,
WebView
public static AdSessionContext createNativeAdSessionContext(Partner partner, java.lang.String omidJsScriptContent, java.util.List<VerificationScriptResource> verificationScriptResources, java.lang.String customReferenceData)
partner
- details of the integration partner responsible for the ad
sessionomidJsScriptContent
- containing the OMID JS service content to be injected into
the hidden tracking web viewverificationScriptResources
- of all verification providers who expect to receive OMID
event data.customReferenceData
- containing reference data specific to the integration
partner.java.lang.IllegalArgumentException
- if the supplied partner is null.java.lang.IllegalArgumentException
- if the supplied omidJsServiceContent is null or blank.java.lang.IllegalArgumentException
- if the supplied verificationScriptResources is null or empty.java.lang.IllegalArgumentException
- if customReferenceData is greater than 256 characters.Partner
,
VerificationScriptResource
public Partner getPartner()
public java.util.List<VerificationScriptResource> getVerificationScriptResources()
public android.webkit.WebView getWebView()
public java.lang.String getCustomReferenceData()
public java.lang.String getOmidJsScriptContent()
public com.iab.omid.library.adsession.AdSessionContextType getAdSessionContextType()