diff --git a/src/@ionic-native/plugins/admob-pro/index.ts b/src/@ionic-native/plugins/admob-pro/index.ts index 5e8529dd..bb1c400a 100644 --- a/src/@ionic-native/plugins/admob-pro/index.ts +++ b/src/@ionic-native/plugins/admob-pro/index.ts @@ -1,11 +1,17 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; -export type AdSize = 'SMART_BANNER' | 'BANNER' | 'MEDIUM_RECTANGLE' | 'FULL_BANNER' | 'LEADERBOARD' | 'SKYSCRAPER' | 'CUSTOM'; +export type AdSize = + | 'SMART_BANNER' + | 'BANNER' + | 'MEDIUM_RECTANGLE' + | 'FULL_BANNER' + | 'LEADERBOARD' + | 'SKYSCRAPER' + | 'CUSTOM'; export interface AdMobOptions { - /** * Banner ad ID */ @@ -70,16 +76,14 @@ export interface AdMobOptions { * License key for the plugin */ license?: any; - - /** - * Set offset - */ - offsetTopBar?: boolean; + /** + * Set offset + */ + offsetTopBar?: boolean; } export interface AdExtras { - color_bg: string; color_bg_top: string; @@ -91,7 +95,6 @@ export interface AdExtras { color_text: string; color_url: string; - } /** @@ -139,7 +142,6 @@ export interface AdExtras { }) @Injectable() export class AdMobPro extends IonicNativePlugin { - AD_POSITION: { NO_CHANGE: number; TOP_LEFT: number; @@ -172,7 +174,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the banner is created */ @Cordova() - createBanner(adIdOrOptions: string | AdMobOptions): Promise { return; } + createBanner(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Destroy the banner, remove it from screen. @@ -180,7 +184,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - removeBanner(): void { } + removeBanner(): void {} /** * Show banner at position @@ -189,7 +193,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBanner(position: number): void { } + showBanner(position: number): void {} /** * Show banner at custom position @@ -199,7 +203,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBannerAtXY(x: number, y: number): void { } + showBannerAtXY(x: number, y: number): void {} /** * Hide the banner, remove it from screen, but can show it later @@ -207,7 +211,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - hideBanner(): void { } + hideBanner(): void {} /** * Prepare interstitial banner @@ -215,7 +219,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when interstitial is prepared */ @Cordova() - prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { return; } + prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Show interstitial ad when it's ready @@ -223,7 +229,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showInterstitial(): void { } + showInterstitial(): void {} /** * Prepare a reward video ad @@ -231,7 +237,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the ad is prepared */ @Cordova() - prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { return; } + prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Show a reward video ad @@ -239,7 +247,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showRewardVideoAd(): void { } + showRewardVideoAd(): void {} /** * Sets the values for configuration and targeting @@ -247,14 +255,18 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the options have been set */ @Cordova() - setOptions(options: AdMobOptions): Promise { return; } + setOptions(options: AdMobOptions): Promise { + return; + } /** * Get user ad settings * @returns {Promise} Returns a promise that resolves with the ad settings */ @Cordova() - getAdSettings(): Promise { return; } + getAdSettings(): Promise { + return; + } /** * Triggered when failed to receive Ad @@ -265,7 +277,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdFailLoad', element: document }) - onAdFailLoad(): Observable { return; } + onAdFailLoad(): Observable { + return; + } /** * Triggered when Ad received @@ -276,7 +290,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLoaded', element: document }) - onAdLoaded(): Observable { return; } + onAdLoaded(): Observable { + return; + } /** * Triggered when Ad will be showed on screen @@ -287,7 +303,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdPresent', element: document }) - onAdPresent(): Observable { return; } + onAdPresent(): Observable { + return; + } /** * Triggered when user click the Ad, and will jump out of your App @@ -298,7 +316,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLeaveApp', element: document }) - onAdLeaveApp(): Observable { return; } + onAdLeaveApp(): Observable { + return; + } /** * Triggered when dismiss the Ad and back to your App @@ -309,6 +329,7 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdDismiss', element: document }) - onAdDismiss(): Observable { return; } - + onAdDismiss(): Observable { + return; + } }