2.0.0-alpha.3 • Published 20 days ago

@admob-plus/capacitor v2.0.0-alpha.3

Weekly downloads
23
License
MIT
Repository
github
Last release
20 days ago

NPM version GitHub last commit Dependency status Vulnerabilities NPM license

@admob-plus/capacitor

AdMob Plus Capacitor Plugin

Install

npm install @admob-plus/capacitor
npx cap sync

Documentation

You can find the documentation on the website.

API

start()

start() => Promise<void>

configure(...)

configure(config: AdMobConfig) => Promise<void>
ParamType
configAdMobConfig

configRequest(...)

configRequest(requestConfig: RequestConfig) => Promise<void>
ParamType
requestConfigRequestConfig

adCreate(...)

adCreate<O extends MobileAdOptions>(opts: O) => Promise<void>
ParamType
optsO

adIsLoaded(...)

adIsLoaded(opts: { id: number; }) => Promise<boolean>
ParamType
opts{ id: number; }

Returns: Promise<boolean>


adLoad(...)

adLoad(opts: { id: number; }) => Promise<void>
ParamType
opts{ id: number; }

adShow(...)

adShow(opts: { id: number; }) => Promise<void>
ParamType
opts{ id: number; }

adHide(...)

adHide(opts: { id: number; }) => Promise<void>
ParamType
opts{ id: number; }

trackingAuthorizationStatus()

trackingAuthorizationStatus() => Promise<{ status: TrackingAuthorizationStatus | false; }>

Returns: Promise<{ status: false | TrackingAuthorizationStatus; }>


requestTrackingAuthorization()

requestTrackingAuthorization() => Promise<{ status: TrackingAuthorizationStatus | false; }>

Returns: Promise<{ status: false | TrackingAuthorizationStatus; }>


addListener(string, ...)

addListener(eventName: string, listenerFunc: (event: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventNamestring
listenerFunc(event: any) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

AdMobConfig

{ appMuted?: boolean appVolume?: number }

RequestConfig

{ maxAdContentRating?: MaxAdContentRating sameAppKey?: boolean tagForChildDirectedTreatment?: boolean | null tagForUnderAgeOfConsent?: boolean | null testDeviceIds?: string[] }

MobileAdOptions

{ adUnitId: string }

Enums

MaxAdContentRating

MembersValue
G'G'
MA'MA'
PG'PG'
T'T'
UNSPECIFIED''

TrackingAuthorizationStatus

MembersValue
notDetermined0
restricted1
denied2
authorized3
2.0.0-alpha.3

20 days ago

2.0.0-alpha.2

29 days ago

2.0.0-alpha.1

11 months ago

2.0.0-alpha.0

12 months ago

1.24.0

2 years ago

1.23.0

2 years ago

1.22.1

2 years ago

1.22.0

2 years ago

1.21.0

3 years ago

1.20.1

3 years ago

1.20.0

3 years ago

1.19.1

3 years ago

1.19.0

3 years ago

1.18.0

3 years ago

1.17.0

3 years ago

1.16.1

3 years ago

1.16.0

3 years ago

1.15.2

3 years ago

1.15.1

3 years ago

1.15.0

3 years ago

1.14.0

3 years ago

1.13.0

3 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-rc.1

3 years ago

1.0.0-rc.0

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-alpha.5

3 years ago

1.0.0-alpha.4

3 years ago

1.0.0-alpha.3

3 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago

1.0.0-alpha.0

3 years ago

0.4.2

3 years ago

0.4.1

4 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago