Skip to main content
Version: Next

Class: WebViewAd

Hierarchy

Constructors

constructor

new WebViewAd(opts): WebViewAd

Parameters

NameType
optsWebViewAdOptions

Returns

WebViewAd

Overrides

MobileAd.constructor

Defined in

packages/cordova/src/www/ads/webview.ts:25

Properties

_adsense

Private _adsense: string = ""

Defined in

packages/cordova/src/www/ads/webview.ts:21


_historyCurrentHref

Private _historyCurrentHref: string = ""

Defined in

packages/cordova/src/www/ads/webview.ts:23


_loaded

Private _loaded: boolean = false

Defined in

packages/cordova/src/www/ads/webview.ts:19


_originalHref

Private _originalHref: string

Defined in

packages/cordova/src/www/ads/webview.ts:22


_src

Private _src: string = ""

Defined in

packages/cordova/src/www/ads/webview.ts:20


id

Readonly id: string

Inherited from

MobileAd.id

Defined in

packages/cordova/src/www/ads/base.ts:18


opts

Protected Readonly opts: WebViewAdOptions

Inherited from

MobileAd.opts

Defined in

packages/cordova/src/www/ads/base.ts:20


cls

Static Readonly cls: "WebViewAd"

Defined in

packages/cordova/src/www/ads/webview.ts:11

Accessors

adUnitId

get adUnitId(): string

Returns

string

Inherited from

MobileAd.adUnitId

Defined in

packages/cordova/src/www/ads/base.ts:40


allAds

get allAds(): Record<string, MobileAd<MobileAdOptions>>

Returns

Record<string, MobileAd<MobileAdOptions>>

Inherited from

MobileAd.allAds

Defined in

packages/cordova/src/www/ads/base.ts:30

Methods

addAd

addAd(options): boolean

Parameters

NameType
optionsObject
options.elementHTMLElement
options.format?string
options.fullWidth?boolean
options.html?string
options.slotstring

Returns

boolean

Defined in

packages/cordova/src/www/ads/webview.ts:76


hide

hide(): Promise<unknown>

Returns

Promise<unknown>

Inherited from

MobileAd.hide

Defined in

packages/cordova/src/www/ads/base.ts:77


historyCurrentHref

historyCurrentHref(): string

Returns

string

Defined in

packages/cordova/src/www/ads/webview.ts:161


historyOriginalHref

historyOriginalHref(): string

Returns

string

Defined in

packages/cordova/src/www/ads/webview.ts:157


historyReplaceState

historyReplaceState(url): void

Parameters

NameType
urlstring

Returns

void

Defined in

packages/cordova/src/www/ads/webview.ts:136


historyRestoreOriginalHref

historyRestoreOriginalHref(): void

Returns

void

Defined in

packages/cordova/src/www/ads/webview.ts:165


historySetPage

historySetPage(page, parameters?): string

Parameters

NameType
pagestring
parametersObject

Returns

string

Defined in

packages/cordova/src/www/ads/webview.ts:145


init

init(): Promise<unknown>

Returns

Promise<unknown>

Inherited from

MobileAd.init

Defined in

packages/cordova/src/www/ads/base.ts:82


isLoaded

isLoaded(): Promise<boolean>

Returns

Promise<boolean>

Inherited from

MobileAd.isLoaded

Defined in

packages/cordova/src/www/ads/base.ts:61


isNodeScript

isNodeScript(node): boolean

Parameters

NameType
nodeany

Returns

boolean

Defined in

packages/cordova/src/www/ads/webview.ts:132


load

load(): Promise<void>

Returns

Promise<void>

Inherited from

MobileAd.load

Defined in

packages/cordova/src/www/ads/base.ts:66


nodeScriptClone

nodeScriptClone(node): HTMLScriptElement

Parameters

NameType
nodeany

Returns

HTMLScriptElement

Defined in

packages/cordova/src/www/ads/webview.ts:122


nodeScriptReplace

nodeScriptReplace(node): any

Parameters

NameType
nodeany

Returns

any

Defined in

packages/cordova/src/www/ads/webview.ts:110


on

on(...args): () => void

Parameters

NameType
...args[type: string, listener: Function, useCapture?: boolean]

Returns

fn

▸ (): void

Returns

void

Inherited from

MobileAd.on

Defined in

packages/cordova/src/www/ads/base.ts:44


show

show(): Promise<unknown>

Returns

Promise<unknown>

Overrides

MobileAd.show

Defined in

packages/cordova/src/www/ads/webview.ts:169


checkIntegration

checkIntegration(): Promise<void>

Returns

Promise<void>

Defined in

packages/cordova/src/www/ads/webview.ts:13


getAdById

getAdById(id): MobileAd<MobileAdOptions>

Parameters

NameType
idstring

Returns

MobileAd<MobileAdOptions>

Inherited from

MobileAd.getAdById

Defined in

packages/cordova/src/www/ads/base.ts:36