Constructor
new Context(partnernon-null, verificationScriptResourcesnullable)
Create a new ad session context providing reference to partner and a list
of script resources which should be managed by OM SDK service.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
partner |
Partner | ||
verificationScriptResources |
Array.<!VerificationScriptResource> |
<nullable> |
Members
(nullable) slotElement :HTMLElement
Type:
- HTMLElement
(nullable) videoElement :HTMLVideoElement
Type:
- HTMLVideoElement
Methods
setSlotElement(slotElementnullable)
Specifies the ad creative HTML element within the WebView.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
slotElement |
HTMLElement |
<nullable> |
The ad creative DOM element |
setVideoElement(videoElementnullable)
Specifies the video element within the WebView.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
videoElement |
HTMLVideoElement |
<nullable> |
The video element |