public final class ScriptInjector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
injectScriptContentIntoHtml(java.lang.String scriptContent,
java.lang.String html)
Injects the supplied OMID JS content into the served HTML.
|
public static java.lang.String injectScriptContentIntoHtml(java.lang.String scriptContent, java.lang.String html)
scriptContent
- containing the OMID JS service content to be injected into the hidden
tracking web view.html
- of the tag content which should be modified to include the downloaded
OMID JS content.java.lang.IllegalArgumentException
- if the supplied HTML is either null or blank.java.lang.IllegalStateException
- if this method has been executed before OMID has been
activated.java.lang.IllegalStateException
- if this method has been executed before OMID JS is available.