Skip to main content
Version: Next

Class: MobileAd<T>

Type parameters

NameType
Textends MobileAdOptions = MobileAdOptions

Hierarchy

Constructors

constructor

new MobileAd<T>(opts): MobileAd<T>

Type parameters

NameType
Textends MobileAdOptions = MobileAdOptions

Parameters

NameType
optsT

Returns

MobileAd<T>

Defined in

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

Properties

_initPromise

Private _initPromise: undefined | Promise<unknown>

Defined in

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


id

Readonly id: string

Defined in

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


opts

Protected Readonly opts: T

Defined in

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

Accessors

adUnitId

get adUnitId(): string

Returns

string

Defined in

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


allAds

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

Returns

Record<string, MobileAd<MobileAdOptions>>

Defined in

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

Methods

_init

_init(): Promise<unknown>

Returns

Promise<unknown>

Defined in

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


hide

hide(): Promise<unknown>

Returns

Promise<unknown>

Defined in

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


init

init(): Promise<unknown>

Returns

Promise<unknown>

Defined in

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


isLoaded

isLoaded(): Promise<boolean>

Returns

Promise<boolean>

Defined in

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


load

load(): Promise<void>

Returns

Promise<void>

Defined in

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


on

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

Parameters

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

Returns

fn

▸ (): void

Returns

void

Defined in

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


show

show(opts?): Promise<unknown>

Parameters

NameType
opts?Record<string, unknown>

Returns

Promise<unknown>

Defined in

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


getAdById

getAdById(id): MobileAd<MobileAdOptions>

Parameters

NameType
idstring

Returns

MobileAd<MobileAdOptions>

Defined in

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