@capacitor-community/admob
Advanced tools
Comparing version 3.0.0-2 to 3.0.0-3
@@ -10,3 +10,3 @@ { | ||
"name": "initialize", | ||
"signature": "(options: AdMobInitializationOptions) => Promise<{ value: boolean; }>", | ||
"signature": "(options: AdMobInitializationOptions) => Promise<void>", | ||
"parameters": [ | ||
@@ -19,3 +19,3 @@ { | ||
], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -43,3 +43,3 @@ { | ||
"name": "showBanner", | ||
"signature": "(options: AdOptions) => Promise<{ value: boolean; }>", | ||
"signature": "(options: AdOptions) => Promise<void>", | ||
"parameters": [ | ||
@@ -52,3 +52,3 @@ { | ||
], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -76,5 +76,5 @@ { | ||
"name": "hideBanner", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -96,5 +96,5 @@ { | ||
"name": "resumeBanner", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -116,5 +116,5 @@ { | ||
"name": "removeBanner", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -136,3 +136,3 @@ { | ||
"name": "prepareInterstitial", | ||
"signature": "(options: AdOptions) => Promise<{ value: boolean; }>", | ||
"signature": "(options: AdOptions) => Promise<void>", | ||
"parameters": [ | ||
@@ -145,3 +145,3 @@ { | ||
], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -169,5 +169,5 @@ { | ||
"name": "showInterstitial", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -189,3 +189,3 @@ { | ||
"name": "prepareRewardVideoAd", | ||
"signature": "(options: AdOptions) => Promise<{ value: boolean; }>", | ||
"signature": "(options: AdOptions) => Promise<void>", | ||
"parameters": [ | ||
@@ -198,3 +198,3 @@ { | ||
], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -222,5 +222,5 @@ { | ||
"name": "showRewardVideoAd", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -242,5 +242,5 @@ { | ||
"name": "pauseRewardedVideo", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -262,5 +262,5 @@ { | ||
"name": "resumeRewardedVideo", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -282,5 +282,5 @@ { | ||
"name": "stopRewardedVideo", | ||
"signature": "() => Promise<{ value: boolean; }>", | ||
"signature": "() => Promise<void>", | ||
"parameters": [], | ||
"returns": "Promise<{ value: boolean; }>", | ||
"returns": "Promise<void>", | ||
"tags": [ | ||
@@ -302,3 +302,3 @@ { | ||
"name": "addListener", | ||
"signature": "(eventName: 'onAdLoaded', listenerFunc: (info: any) => void) => PluginListenerHandle", | ||
"signature": "(eventName: 'onAdLoaded', listenerFunc: (info: { size: { width: number; height: number; }; }) => void) => PluginListenerHandle", | ||
"parameters": [ | ||
@@ -313,3 +313,3 @@ { | ||
"docs": "", | ||
"type": "(info: any) => void" | ||
"type": "(info: { size: { width: number; height: number; }; }) => void" | ||
} | ||
@@ -333,3 +333,3 @@ ], | ||
"name": "since", | ||
"text": "1.1.2" | ||
"text": "3.0.0" | ||
} | ||
@@ -345,46 +345,6 @@ ], | ||
"name": "addListener", | ||
"signature": "(eventName: 'onAdSize', listenerFunc: (info: any) => void) => PluginListenerHandle", | ||
"signature": "(eventName: 'onAdFailedToLoad', listenerFunc: (info: AdMobError) => void) => PluginListenerHandle", | ||
"parameters": [ | ||
{ | ||
"name": "eventName", | ||
"docs": "onAdSize", | ||
"type": "\"onAdSize\"" | ||
}, | ||
{ | ||
"name": "listenerFunc", | ||
"docs": "", | ||
"type": "(info: any) => void" | ||
} | ||
], | ||
"returns": "PluginListenerHandle", | ||
"tags": [ | ||
{ | ||
"name": "group", | ||
"text": "Banner" | ||
}, | ||
{ | ||
"name": "param", | ||
"text": "eventName onAdSize" | ||
}, | ||
{ | ||
"name": "param", | ||
"text": "listenerFunc" | ||
}, | ||
{ | ||
"name": "since", | ||
"text": "3.0.0" | ||
} | ||
], | ||
"docs": "Notice: banner size changed and notice size", | ||
"complexTypes": [ | ||
"PluginListenerHandle" | ||
], | ||
"slug": "addlistener" | ||
}, | ||
{ | ||
"name": "addListener", | ||
"signature": "(eventName: 'onAdFailedToLoad', listenerFunc: (info: any) => void) => PluginListenerHandle", | ||
"parameters": [ | ||
{ | ||
"name": "eventName", | ||
"docs": "onAdFailedToLoad", | ||
@@ -396,3 +356,3 @@ "type": "\"onAdFailedToLoad\"" | ||
"docs": "", | ||
"type": "(info: any) => void" | ||
"type": "(info: AdMobError) => void" | ||
} | ||
@@ -421,3 +381,4 @@ ], | ||
"complexTypes": [ | ||
"PluginListenerHandle" | ||
"PluginListenerHandle", | ||
"AdMobError" | ||
], | ||
@@ -428,3 +389,3 @@ "slug": "addlistener" | ||
"name": "addListener", | ||
"signature": "(eventName: 'onAdOpened', listenerFunc: (info: any) => void) => PluginListenerHandle", | ||
"signature": "(eventName: 'onAdOpened', listenerFunc: () => void) => PluginListenerHandle", | ||
"parameters": [ | ||
@@ -439,3 +400,3 @@ { | ||
"docs": "", | ||
"type": "(info: any) => void" | ||
"type": "() => void" | ||
} | ||
@@ -470,3 +431,3 @@ ], | ||
"name": "addListener", | ||
"signature": "(eventName: 'onAdClosed', listenerFunc: (info: any) => void) => PluginListenerHandle", | ||
"signature": "(eventName: 'onAdClosed', listenerFunc: () => void) => PluginListenerHandle", | ||
"parameters": [ | ||
@@ -481,3 +442,3 @@ { | ||
"docs": "", | ||
"type": "(info: any) => void" | ||
"type": "() => void" | ||
} | ||
@@ -512,3 +473,3 @@ ], | ||
"name": "addListener", | ||
"signature": "(eventName: 'adViewDidReceiveAd', listenerFunc: (info: any) => void) => PluginListenerHandle", | ||
"signature": "(eventName: 'adViewDidReceiveAd', listenerFunc: () => void) => PluginListenerHandle", | ||
"parameters": [ | ||
@@ -523,3 +484,3 @@ { | ||
"docs": "", | ||
"type": "(info: any) => void" | ||
"type": "() => void" | ||
} | ||
@@ -530,2 +491,6 @@ ], | ||
{ | ||
"name": "deprecated", | ||
"text": "iOS Only" | ||
}, | ||
{ | ||
"name": "group", | ||
@@ -555,3 +520,3 @@ "text": "Banner" | ||
"name": "addListener", | ||
"signature": "(eventName: 'adView:didFailToReceiveAdWithError', listenerFunc: (info: any) => void) => PluginListenerHandle", | ||
"signature": "(eventName: 'adView:didFailToReceiveAdWithError', listenerFunc: (info: AdMobError) => void) => PluginListenerHandle", | ||
"parameters": [ | ||
@@ -566,3 +531,3 @@ { | ||
"docs": "", | ||
"type": "(info: any) => void" | ||
"type": "(info: AdMobError) => void" | ||
} | ||
@@ -573,2 +538,6 @@ ], | ||
{ | ||
"name": "deprecated", | ||
"text": "iOS Only" | ||
}, | ||
{ | ||
"name": "group", | ||
@@ -592,3 +561,4 @@ "text": "Banner" | ||
"complexTypes": [ | ||
"PluginListenerHandle" | ||
"PluginListenerHandle", | ||
"AdMobError" | ||
], | ||
@@ -615,2 +585,6 @@ "slug": "addlistener" | ||
{ | ||
"name": "deprecated", | ||
"text": "iOS Only" | ||
}, | ||
{ | ||
"name": "group", | ||
@@ -656,2 +630,6 @@ "text": "Banner" | ||
{ | ||
"name": "deprecated", | ||
"text": "iOS Only" | ||
}, | ||
{ | ||
"name": "group", | ||
@@ -697,2 +675,6 @@ "text": "Banner" | ||
{ | ||
"name": "deprecated", | ||
"text": "iOS Only" | ||
}, | ||
{ | ||
"name": "group", | ||
@@ -754,3 +736,3 @@ "text": "Banner" | ||
], | ||
"docs": "Notice: User click will open another app.(iOS)", | ||
"docs": "Notice: User click will open another app.", | ||
"complexTypes": [ | ||
@@ -924,3 +906,3 @@ "PluginListenerHandle", | ||
"name": "addListener", | ||
"signature": "(eventName: 'onInterstitialAdFailedToLoad', listenerFunc: (info: { error: string; errorCode: number; }) => void) => PluginListenerHandle", | ||
"signature": "(eventName: 'onInterstitialAdFailedToLoad', listenerFunc: (info: AdMobError) => void) => PluginListenerHandle", | ||
"parameters": [ | ||
@@ -935,3 +917,3 @@ { | ||
"docs": "", | ||
"type": "(info: { error: string; errorCode: number; }) => void" | ||
"type": "(info: AdMobError) => void" | ||
} | ||
@@ -960,3 +942,4 @@ ], | ||
"complexTypes": [ | ||
"PluginListenerHandle" | ||
"PluginListenerHandle", | ||
"AdMobError" | ||
], | ||
@@ -1063,2 +1046,6 @@ "slug": "addlistener" | ||
{ | ||
"name": "deprecated", | ||
"text": "Android Only" | ||
}, | ||
{ | ||
"name": "group", | ||
@@ -1305,2 +1292,6 @@ "text": "RewardedVideo" | ||
{ | ||
"name": "deprecated", | ||
"text": "Android Only" | ||
}, | ||
{ | ||
"name": "group", | ||
@@ -1322,3 +1313,3 @@ "text": "RewardedVideo" | ||
], | ||
"docs": "Notice: Watch RewardVideo complete", | ||
"docs": "Notice: Watch RewardVideo complete(Android)", | ||
"complexTypes": [ | ||
@@ -1528,5 +1519,5 @@ "PluginListenerHandle" | ||
{ | ||
"name": "AdMobRewardItem", | ||
"slug": "admobrewarditem", | ||
"docs": "", | ||
"name": "AdMobError", | ||
"slug": "admoberror", | ||
"docs": "For more information\nhttps://developers.google.com/android/reference/com/google/android/gms/ads/AdError", | ||
"tags": [], | ||
@@ -1536,14 +1527,28 @@ "methods": [], | ||
{ | ||
"name": "type", | ||
"name": "code", | ||
"tags": [], | ||
"docs": "", | ||
"docs": "Gets the error's code.", | ||
"complexTypes": [], | ||
"type": "number" | ||
}, | ||
{ | ||
"name": "message", | ||
"tags": [], | ||
"docs": "Gets the message describing the error.", | ||
"complexTypes": [], | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "amount", | ||
"name": "cause", | ||
"tags": [], | ||
"docs": "", | ||
"docs": "Gets the cause of this error or null if the cause is nonexistent or unknown.", | ||
"complexTypes": [], | ||
"type": "number" | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "domain", | ||
"tags": [], | ||
"docs": "Gets the domain of the error.\nMobileAds.ERROR_DOMAIN for Google Mobile Ads SDK errors, or a domain defined by mediation networks for mediation errors.", | ||
"complexTypes": [], | ||
"type": "string" | ||
} | ||
@@ -1553,5 +1558,5 @@ ] | ||
{ | ||
"name": "AdMobError", | ||
"slug": "admoberror", | ||
"docs": "", | ||
"name": "AdMobRewardItem", | ||
"slug": "admobrewarditem", | ||
"docs": "For more information\nhttps://developers.google.com/admob/android/rewarded-video-adapters?hl=en", | ||
"tags": [], | ||
@@ -1561,5 +1566,5 @@ "methods": [], | ||
{ | ||
"name": "reason", | ||
"name": "type", | ||
"tags": [], | ||
"docs": "", | ||
"docs": "Rewarded type user got", | ||
"complexTypes": [], | ||
@@ -1569,5 +1574,5 @@ "type": "string" | ||
{ | ||
"name": "code", | ||
"name": "amount", | ||
"tags": [], | ||
"docs": "", | ||
"docs": "Rewarded amount user got", | ||
"complexTypes": [], | ||
@@ -1574,0 +1579,0 @@ "type": "number" |
@@ -10,5 +10,3 @@ import { PluginListenerHandle } from '@capacitor/core'; | ||
*/ | ||
initialize(options: AdMobInitializationOptions): Promise<{ | ||
value: boolean; | ||
}>; | ||
initialize(options: AdMobInitializationOptions): Promise<void>; | ||
/** | ||
@@ -21,5 +19,3 @@ * Show a banner Ad | ||
*/ | ||
showBanner(options: AdOptions): Promise<{ | ||
value: boolean; | ||
}>; | ||
showBanner(options: AdOptions): Promise<void>; | ||
/** | ||
@@ -31,5 +27,3 @@ * Hide the banner, remove it from screen, but can show it later | ||
*/ | ||
hideBanner(): Promise<{ | ||
value: boolean; | ||
}>; | ||
hideBanner(): Promise<void>; | ||
/** | ||
@@ -41,5 +35,3 @@ * Resume the banner, show it after hide | ||
*/ | ||
resumeBanner(): Promise<{ | ||
value: boolean; | ||
}>; | ||
resumeBanner(): Promise<void>; | ||
/** | ||
@@ -51,5 +43,3 @@ * Destroy the banner, remove it from screen. | ||
*/ | ||
removeBanner(): Promise<{ | ||
value: boolean; | ||
}>; | ||
removeBanner(): Promise<void>; | ||
/** | ||
@@ -62,5 +52,3 @@ * Prepare interstitial banner | ||
*/ | ||
prepareInterstitial(options: AdOptions): Promise<{ | ||
value: boolean; | ||
}>; | ||
prepareInterstitial(options: AdOptions): Promise<void>; | ||
/** | ||
@@ -72,5 +60,3 @@ * Show interstitial ad when it’s ready | ||
*/ | ||
showInterstitial(): Promise<{ | ||
value: boolean; | ||
}>; | ||
showInterstitial(): Promise<void>; | ||
/** | ||
@@ -83,5 +69,3 @@ * Prepare a reward video ad | ||
*/ | ||
prepareRewardVideoAd(options: AdOptions): Promise<{ | ||
value: boolean; | ||
}>; | ||
prepareRewardVideoAd(options: AdOptions): Promise<void>; | ||
/** | ||
@@ -93,5 +77,3 @@ * Show a reward video ad | ||
*/ | ||
showRewardVideoAd(): Promise<{ | ||
value: boolean; | ||
}>; | ||
showRewardVideoAd(): Promise<void>; | ||
/** | ||
@@ -103,5 +85,3 @@ * Pause RewardedVideo | ||
*/ | ||
pauseRewardedVideo(): Promise<{ | ||
value: boolean; | ||
}>; | ||
pauseRewardedVideo(): Promise<void>; | ||
/** | ||
@@ -113,5 +93,3 @@ * Resume RewardedVideo | ||
*/ | ||
resumeRewardedVideo(): Promise<{ | ||
value: boolean; | ||
}>; | ||
resumeRewardedVideo(): Promise<void>; | ||
/** | ||
@@ -123,5 +101,3 @@ * Close RewardedVideo | ||
*/ | ||
stopRewardedVideo(): Promise<{ | ||
value: boolean; | ||
}>; | ||
stopRewardedVideo(): Promise<void>; | ||
/** | ||
@@ -133,14 +109,10 @@ * Notice: banner ad is loaded(android) | ||
* @param listenerFunc | ||
* @since 1.1.2 | ||
*/ | ||
addListener(eventName: 'onAdLoaded', listenerFunc: (info: any) => void): PluginListenerHandle; | ||
/** | ||
* Notice: banner size changed and notice size | ||
* | ||
* @group Banner | ||
* @param eventName onAdSize | ||
* @param listenerFunc | ||
* @since 3.0.0 | ||
*/ | ||
addListener(eventName: 'onAdSize', listenerFunc: (info: any) => void): PluginListenerHandle; | ||
addListener(eventName: 'onAdLoaded', listenerFunc: (info: { | ||
size: { | ||
width: number; | ||
height: number; | ||
}; | ||
}) => void): PluginListenerHandle; | ||
/** | ||
@@ -154,3 +126,3 @@ * Notice: failed to load Banner ad(android) | ||
*/ | ||
addListener(eventName: 'onAdFailedToLoad', listenerFunc: (info: any) => void): PluginListenerHandle; | ||
addListener(eventName: 'onAdFailedToLoad', listenerFunc: (info: AdMobError) => void): PluginListenerHandle; | ||
/** | ||
@@ -164,3 +136,3 @@ * Notice: banner ad is show(android) | ||
*/ | ||
addListener(eventName: 'onAdOpened', listenerFunc: (info: any) => void): PluginListenerHandle; | ||
addListener(eventName: 'onAdOpened', listenerFunc: () => void): PluginListenerHandle; | ||
/** | ||
@@ -174,6 +146,7 @@ * Notice: Banner ad is closed(android) | ||
*/ | ||
addListener(eventName: 'onAdClosed', listenerFunc: (info: any) => void): PluginListenerHandle; | ||
addListener(eventName: 'onAdClosed', listenerFunc: () => void): PluginListenerHandle; | ||
/** | ||
* Notice: request loaded Banner ad(iOS) | ||
* | ||
* @deprecated iOS Only | ||
* @group Banner | ||
@@ -184,6 +157,7 @@ * @param eventName adViewDidReceiveAd | ||
*/ | ||
addListener(eventName: 'adViewDidReceiveAd', listenerFunc: (info: any) => void): PluginListenerHandle; | ||
addListener(eventName: 'adViewDidReceiveAd', listenerFunc: () => void): PluginListenerHandle; | ||
/** | ||
* Notice: request failed Banner ad(iOS) | ||
* | ||
* @deprecated iOS Only | ||
* @group Banner | ||
@@ -194,6 +168,7 @@ * @param eventName adView:didFailToReceiveAdWithError | ||
*/ | ||
addListener(eventName: 'adView:didFailToReceiveAdWithError', listenerFunc: (info: any) => void): PluginListenerHandle; | ||
addListener(eventName: 'adView:didFailToReceiveAdWithError', listenerFunc: (info: AdMobError) => void): PluginListenerHandle; | ||
/** | ||
* Notice: full-screen view will be presented in response to the user clicking on an ad.(iOS) | ||
* | ||
* @deprecated iOS Only | ||
* @group Banner | ||
@@ -208,2 +183,3 @@ * @param eventName adViewWillPresentScreen | ||
* | ||
* @deprecated iOS Only | ||
* @group Banner | ||
@@ -218,2 +194,3 @@ * @param eventName adViewWillDismissScreen | ||
* | ||
* @deprecated iOS Only | ||
* @group Banner | ||
@@ -226,3 +203,3 @@ * @param eventName adViewDidDismissScreen | ||
/** | ||
* Notice: User click will open another app.(iOS) | ||
* Notice: User click will open another app. | ||
* | ||
@@ -279,6 +256,3 @@ * @group Banner | ||
*/ | ||
addListener(eventName: 'onInterstitialAdFailedToLoad', listenerFunc: (info: { | ||
error: string; | ||
errorCode: number; | ||
}) => void): PluginListenerHandle; | ||
addListener(eventName: 'onInterstitialAdFailedToLoad', listenerFunc: (info: AdMobError) => void): PluginListenerHandle; | ||
/** | ||
@@ -305,2 +279,3 @@ * Notice: Prepared RewardedVideo | ||
* | ||
* @deprecated Android Only | ||
* @group RewardedVideo | ||
@@ -358,4 +333,5 @@ * @param eventName onRewardedVideoAdOpened | ||
/** | ||
* Notice: Watch RewardVideo complete | ||
* Notice: Watch RewardVideo complete(Android) | ||
* | ||
* @deprecated Android Only | ||
* @group RewardedVideo | ||
@@ -446,9 +422,38 @@ * @param eventName onRewardedVideoCompleted | ||
} | ||
/** | ||
* For more information | ||
* https://developers.google.com/admob/android/rewarded-video-adapters?hl=en | ||
*/ | ||
export interface AdMobRewardItem { | ||
/** | ||
* Rewarded type user got | ||
*/ | ||
type: string; | ||
/** | ||
* Rewarded amount user got | ||
*/ | ||
amount: number; | ||
} | ||
/** | ||
* For more information | ||
* https://developers.google.com/android/reference/com/google/android/gms/ads/AdError | ||
*/ | ||
export interface AdMobError { | ||
reason: string; | ||
/** | ||
* Gets the error's code. | ||
*/ | ||
code: number; | ||
/** | ||
* Gets the message describing the error. | ||
*/ | ||
message: string; | ||
/** | ||
* Gets the cause of this error or null if the cause is nonexistent or unknown. | ||
*/ | ||
cause: string; | ||
/** | ||
* Gets the domain of the error. | ||
* MobileAds.ERROR_DOMAIN for Google Mobile Ads SDK errors, or a domain defined by mediation networks for mediation errors. | ||
*/ | ||
domain: string; | ||
} | ||
@@ -455,0 +460,0 @@ /** |
@@ -6,38 +6,14 @@ import { WebPlugin } from '@capacitor/core'; | ||
constructor(); | ||
initialize(): Promise<{ | ||
value: boolean; | ||
}>; | ||
showBanner(options: AdOptions): Promise<{ | ||
value: boolean; | ||
}>; | ||
hideBanner(): Promise<{ | ||
value: boolean; | ||
}>; | ||
resumeBanner(): Promise<{ | ||
value: boolean; | ||
}>; | ||
removeBanner(): Promise<{ | ||
value: boolean; | ||
}>; | ||
prepareInterstitial(options: AdOptions): Promise<{ | ||
value: boolean; | ||
}>; | ||
showInterstitial(): Promise<{ | ||
value: boolean; | ||
}>; | ||
prepareRewardVideoAd(options: AdOptions): Promise<{ | ||
value: boolean; | ||
}>; | ||
showRewardVideoAd(): Promise<{ | ||
value: boolean; | ||
}>; | ||
pauseRewardedVideo(): Promise<{ | ||
value: boolean; | ||
}>; | ||
resumeRewardedVideo(): Promise<{ | ||
value: boolean; | ||
}>; | ||
stopRewardedVideo(): Promise<{ | ||
value: boolean; | ||
}>; | ||
initialize(): Promise<void>; | ||
showBanner(options: AdOptions): Promise<void>; | ||
hideBanner(): Promise<void>; | ||
resumeBanner(): Promise<void>; | ||
removeBanner(): Promise<void>; | ||
prepareInterstitial(options: AdOptions): Promise<void>; | ||
showInterstitial(): Promise<void>; | ||
prepareRewardVideoAd(options: AdOptions): Promise<void>; | ||
showRewardVideoAd(): Promise<void>; | ||
pauseRewardedVideo(): Promise<void>; | ||
resumeRewardedVideo(): Promise<void>; | ||
stopRewardedVideo(): Promise<void>; | ||
} |
@@ -9,69 +9,25 @@ import { WebPlugin } from '@capacitor/core'; | ||
} | ||
async initialize() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async initialize() { } | ||
// @ts-ignore | ||
async showBanner(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
// Hide the banner, remove it from screen, but can show it later | ||
async hideBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async hideBanner() { } | ||
// Resume the banner, show it after hide | ||
async resumeBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async resumeBanner() { } | ||
// Destroy the banner, remove it from screen. | ||
async removeBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async removeBanner() { } | ||
async prepareInterstitial(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showInterstitial() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showInterstitial() { } | ||
async prepareRewardVideoAd(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showRewardVideoAd() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async pauseRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async resumeRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async stopRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showRewardVideoAd() { } | ||
async pauseRewardedVideo() { } | ||
async resumeRewardedVideo() { } | ||
async stopRewardedVideo() { } | ||
} | ||
//# sourceMappingURL=web.js.map |
@@ -83,68 +83,24 @@ 'use strict'; | ||
} | ||
async initialize() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async initialize() { } | ||
// @ts-ignore | ||
async showBanner(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
// Hide the banner, remove it from screen, but can show it later | ||
async hideBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async hideBanner() { } | ||
// Resume the banner, show it after hide | ||
async resumeBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async resumeBanner() { } | ||
// Destroy the banner, remove it from screen. | ||
async removeBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async removeBanner() { } | ||
async prepareInterstitial(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showInterstitial() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showInterstitial() { } | ||
async prepareRewardVideoAd(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showRewardVideoAd() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async pauseRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async resumeRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async stopRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showRewardVideoAd() { } | ||
async pauseRewardedVideo() { } | ||
async resumeRewardedVideo() { } | ||
async stopRewardedVideo() { } | ||
} | ||
@@ -151,0 +107,0 @@ |
@@ -80,68 +80,24 @@ var AdMobPlugin = (function (exports, core) { | ||
} | ||
async initialize() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async initialize() { } | ||
// @ts-ignore | ||
async showBanner(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
// Hide the banner, remove it from screen, but can show it later | ||
async hideBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async hideBanner() { } | ||
// Resume the banner, show it after hide | ||
async resumeBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async resumeBanner() { } | ||
// Destroy the banner, remove it from screen. | ||
async removeBanner() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async removeBanner() { } | ||
async prepareInterstitial(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showInterstitial() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showInterstitial() { } | ||
async prepareRewardVideoAd(options) { | ||
console.log(options); | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showRewardVideoAd() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async pauseRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async resumeRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async stopRewardedVideo() { | ||
return { | ||
value: true, | ||
}; | ||
} | ||
async showRewardVideoAd() { } | ||
async pauseRewardedVideo() { } | ||
async resumeRewardedVideo() { } | ||
async stopRewardedVideo() { } | ||
} | ||
@@ -148,0 +104,0 @@ |
{ | ||
"name": "@capacitor-community/admob", | ||
"version": "3.0.0-2", | ||
"version": "3.0.0-3", | ||
"description": "A native plugin for AdMob", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161576
2448