Class: WebViewAd
Hierarchy
-
↳
WebViewAd
Constructors
constructor
• new WebViewAd(opts
): WebViewAd
Parameters
Name | Type |
---|---|
opts | WebViewAdOptions |
Returns
Overrides
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
Defined in
packages/cordova/src/www/ads/base.ts:18
opts
• Protected
Readonly
opts: WebViewAdOptions
Inherited from
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
Name | Type |
---|---|
options | Object |
options.element | HTMLElement |
options.format? | string |
options.fullWidth? | boolean |
options.html? | string |
options.slot | string |
Returns
boolean
Defined in
packages/cordova/src/www/ads/webview.ts:76
hide
▸ hide(): Promise
<unknown
>
Returns
Promise
<unknown
>
Inherited from
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
Name | Type |
---|---|
url | string |
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
Name | Type |
---|---|
page | string |
parameters | Object |
Returns
string
Defined in
packages/cordova/src/www/ads/webview.ts:145
init
▸ init(): Promise
<unknown
>
Returns
Promise
<unknown
>
Inherited from
Defined in
packages/cordova/src/www/ads/base.ts:82
isLoaded
▸ isLoaded(): Promise
<boolean
>
Returns
Promise
<boolean
>
Inherited from
Defined in
packages/cordova/src/www/ads/base.ts:61
isNodeScript
▸ isNodeScript(node
): boolean
Parameters
Name | Type |
---|---|
node | any |
Returns
boolean
Defined in
packages/cordova/src/www/ads/webview.ts:132
load
▸ load(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
Defined in
packages/cordova/src/www/ads/base.ts:66
nodeScriptClone
▸ nodeScriptClone(node
): HTMLScriptElement
Parameters
Name | Type |
---|---|
node | any |
Returns
HTMLScriptElement
Defined in
packages/cordova/src/www/ads/webview.ts:122
nodeScriptReplace
▸ nodeScriptReplace(node
): any
Parameters
Name | Type |
---|---|
node | any |
Returns
any
Defined in
packages/cordova/src/www/ads/webview.ts:110
on
▸ on(...args
): () => void
Parameters
Name | Type |
---|---|
...args | [type: string, listener: Function, useCapture?: boolean] |
Returns
fn
▸ (): void
Returns
void
Inherited from
Defined in
packages/cordova/src/www/ads/base.ts:44
show
▸ show(): Promise
<unknown
>
Returns
Promise
<unknown
>
Overrides
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
Name | Type |
---|---|
id | string |