2.0.0-alpha.3 • Published 1 year ago

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

Weekly downloads
23
License
MIT
Repository
github
Last release
1 year 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

1 year ago

2.0.0-alpha.2

1 year ago

2.0.0-alpha.1

2 years ago

2.0.0-alpha.0

2 years ago

1.24.0

3 years ago

1.23.0

3 years ago

1.22.1

3 years ago

1.22.0

3 years ago

1.21.0

4 years ago

1.20.1

4 years ago

1.20.0

4 years ago

1.19.1

4 years ago

1.19.0

4 years ago

1.18.0

4 years ago

1.17.0

4 years ago

1.16.1

4 years ago

1.16.0

4 years ago

1.15.2

4 years ago

1.15.1

4 years ago

1.15.0

4 years ago

1.14.0

4 years ago

1.13.0

4 years ago

1.12.0

4 years ago

1.11.0

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.9.1

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-rc.1

4 years ago

1.0.0-rc.0

4 years ago

1.0.0-beta.2

4 years ago

1.0.0-beta.1

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.3

4 years ago

1.0.0-alpha.2

4 years ago

1.0.0-alpha.1

4 years ago

1.0.0-alpha.0

4 years ago

0.4.2

5 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago