fix circle

This commit is contained in:
Daniel Sogl 2018-03-17 16:00:52 +01:00 committed by GitHub
parent 1bedb49152
commit f1bf2fa151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,17 @@
import { Injectable } from '@angular/core'; 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'; 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 { export interface AdMobOptions {
/** /**
* Banner ad ID * Banner ad ID
*/ */
@ -71,15 +77,13 @@ export interface AdMobOptions {
*/ */
license?: any; license?: any;
/** /**
* Set offset * Set offset
*/ */
offsetTopBar?: boolean; offsetTopBar?: boolean;
} }
export interface AdExtras { export interface AdExtras {
color_bg: string; color_bg: string;
color_bg_top: string; color_bg_top: string;
@ -91,7 +95,6 @@ export interface AdExtras {
color_text: string; color_text: string;
color_url: string; color_url: string;
} }
/** /**
@ -139,7 +142,6 @@ export interface AdExtras {
}) })
@Injectable() @Injectable()
export class AdMobPro extends IonicNativePlugin { export class AdMobPro extends IonicNativePlugin {
AD_POSITION: { AD_POSITION: {
NO_CHANGE: number; NO_CHANGE: number;
TOP_LEFT: number; TOP_LEFT: number;
@ -172,7 +174,9 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise<any>} Returns a Promise that resolves when the banner is created * @returns {Promise<any>} Returns a Promise that resolves when the banner is created
*/ */
@Cordova() @Cordova()
createBanner(adIdOrOptions: string | AdMobOptions): Promise<any> { return; } createBanner(adIdOrOptions: string | AdMobOptions): Promise<any> {
return;
}
/** /**
* Destroy the banner, remove it from screen. * Destroy the banner, remove it from screen.
@ -180,7 +184,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({ @Cordova({
sync: true sync: true
}) })
removeBanner(): void { } removeBanner(): void {}
/** /**
* Show banner at position * Show banner at position
@ -189,7 +193,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({ @Cordova({
sync: true sync: true
}) })
showBanner(position: number): void { } showBanner(position: number): void {}
/** /**
* Show banner at custom position * Show banner at custom position
@ -199,7 +203,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({ @Cordova({
sync: true 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 * Hide the banner, remove it from screen, but can show it later
@ -207,7 +211,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({ @Cordova({
sync: true sync: true
}) })
hideBanner(): void { } hideBanner(): void {}
/** /**
* Prepare interstitial banner * Prepare interstitial banner
@ -215,7 +219,9 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise<any>} Returns a Promise that resolves when interstitial is prepared * @returns {Promise<any>} Returns a Promise that resolves when interstitial is prepared
*/ */
@Cordova() @Cordova()
prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise<any> { return; } prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise<any> {
return;
}
/** /**
* Show interstitial ad when it's ready * Show interstitial ad when it's ready
@ -223,7 +229,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({ @Cordova({
sync: true sync: true
}) })
showInterstitial(): void { } showInterstitial(): void {}
/** /**
* Prepare a reward video ad * Prepare a reward video ad
@ -231,7 +237,9 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise<any>} Returns a Promise that resolves when the ad is prepared * @returns {Promise<any>} Returns a Promise that resolves when the ad is prepared
*/ */
@Cordova() @Cordova()
prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise<any> { return; } prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise<any> {
return;
}
/** /**
* Show a reward video ad * Show a reward video ad
@ -239,7 +247,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({ @Cordova({
sync: true sync: true
}) })
showRewardVideoAd(): void { } showRewardVideoAd(): void {}
/** /**
* Sets the values for configuration and targeting * Sets the values for configuration and targeting
@ -247,14 +255,18 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise<any>} Returns a Promise that resolves when the options have been set * @returns {Promise<any>} Returns a Promise that resolves when the options have been set
*/ */
@Cordova() @Cordova()
setOptions(options: AdMobOptions): Promise<any> { return; } setOptions(options: AdMobOptions): Promise<any> {
return;
}
/** /**
* Get user ad settings * Get user ad settings
* @returns {Promise<any>} Returns a promise that resolves with the ad settings * @returns {Promise<any>} Returns a promise that resolves with the ad settings
*/ */
@Cordova() @Cordova()
getAdSettings(): Promise<any> { return; } getAdSettings(): Promise<any> {
return;
}
/** /**
* Triggered when failed to receive Ad * Triggered when failed to receive Ad
@ -265,7 +277,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdFailLoad', event: 'onAdFailLoad',
element: document element: document
}) })
onAdFailLoad(): Observable<any> { return; } onAdFailLoad(): Observable<any> {
return;
}
/** /**
* Triggered when Ad received * Triggered when Ad received
@ -276,7 +290,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdLoaded', event: 'onAdLoaded',
element: document element: document
}) })
onAdLoaded(): Observable<any> { return; } onAdLoaded(): Observable<any> {
return;
}
/** /**
* Triggered when Ad will be showed on screen * Triggered when Ad will be showed on screen
@ -287,7 +303,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdPresent', event: 'onAdPresent',
element: document element: document
}) })
onAdPresent(): Observable<any> { return; } onAdPresent(): Observable<any> {
return;
}
/** /**
* Triggered when user click the Ad, and will jump out of your App * Triggered when user click the Ad, and will jump out of your App
@ -298,7 +316,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdLeaveApp', event: 'onAdLeaveApp',
element: document element: document
}) })
onAdLeaveApp(): Observable<any> { return; } onAdLeaveApp(): Observable<any> {
return;
}
/** /**
* Triggered when dismiss the Ad and back to your App * Triggered when dismiss the Ad and back to your App
@ -309,6 +329,7 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdDismiss', event: 'onAdDismiss',
element: document element: document
}) })
onAdDismiss(): Observable<any> { return; } onAdDismiss(): Observable<any> {
return;
}
} }