refactor(admob):

This commit is contained in:
Guille 2016-07-08 00:31:47 +02:00
parent ef977b7d9e
commit de3f7c2335

View File

@ -1,5 +1,5 @@
import {Plugin, Cordova} from './plugin';
import {Observable} from 'rxjs/Observable';
import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable';
/**
* @name AdMob
@ -22,7 +22,7 @@ export class AdMob {
* @param adIdOrOptions
*/
@Cordova()
static createBanner(adIdOrOptions: any): Promise<any> {return; }
static createBanner(adIdOrOptions: any): Promise<any> { return; }
/**
*
@ -30,7 +30,7 @@ export class AdMob {
@Cordova({
sync: true
})
static removeBanner(): void {}
static removeBanner(): void { }
/**
*
@ -39,7 +39,7 @@ export class AdMob {
@Cordova({
sync: true
})
static showBanner(position: any): void {}
static showBanner(position: any): void { }
/**
*
@ -49,7 +49,7 @@ export class AdMob {
@Cordova({
sync: true
})
static showBannerAtXY(x: number, y: number): void {}
static showBannerAtXY(x: number, y: number): void { }
/**
*
@ -57,14 +57,14 @@ export class AdMob {
@Cordova({
sync: true
})
static hideBanner(): void {}
static hideBanner(): void { }
/**
*
* @param adIdOrOptions
*/
@Cordova()
static prepareInterstitial(adIdOrOptions: any): Promise<any> {return; }
static prepareInterstitial(adIdOrOptions: any): Promise<any> { return; }
/**
* Show interstitial
@ -72,20 +72,20 @@ export class AdMob {
@Cordova({
sync: true
})
static showInterstitial(): void {}
static showInterstitial(): void { }
/**
*
*/
@Cordova()
static isInterstitialReady (): Promise<boolean> {return; }
static isInterstitialReady(): Promise<boolean> { return; }
/**
* Prepare a reward video ad
* @param adIdOrOptions
*/
@Cordova()
static prepareRewardVideoAd(adIdOrOptions: any): Promise<any> {return; }
static prepareRewardVideoAd(adIdOrOptions: any): Promise<any> { return; }
/**
* Show a reward video ad
@ -100,14 +100,14 @@ export class AdMob {
* @param options Returns a promise that resolves if the options are set successfully
*/
@Cordova()
static setOptions(options: any): Promise<any> {return; }
static setOptions(options: any): Promise<any> { return; }
/**
* Get user ad settings
* @returns {Promise<any>} Returns a promise that resolves with the ad settings
*/
@Cordova()
static getAdSettings(): Promise<any> {return; }
static getAdSettings(): Promise<any> { return; }
// Events
@ -115,65 +115,65 @@ export class AdMob {
eventObservable: true,
event: 'onBannerFailedToReceive'
})
static onBannerFailedToReceive (): Observable<any> {return; }
static onBannerFailedToReceive(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onBannerReceive'
})
static onBannerReceive (): Observable<any> {return; }
static onBannerReceive(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onBannerPresent'
})
static onBannerPresent (): Observable<any> {return; }
static onBannerPresent(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onBannerLeaveApp'
})
static onBannerLeaveApp (): Observable<any> {return; }
static onBannerLeaveApp(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onBannerDismiss'
})
static onBannerDismiss (): Observable<any> {return; }
static onBannerDismiss(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onInterstitialFailedToReceive'
})
static onInterstitialFailedToReceive (): Observable<any> {return; }
static onInterstitialFailedToReceive(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onInterstitialReceive'
})
static onInterstitialReceive (): Observable<any> {return; }
static onInterstitialReceive(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onInterstitialPresent'
})
static onInterstitialPresent (): Observable<any> {return; }
static onInterstitialPresent(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onInterstitialLeaveApp'
})
static onInterstitialLeaveApp (): Observable<any> {return; }
static onInterstitialLeaveApp(): Observable<any> { return; }
@Cordova({
eventObservable: true,
event: 'onInterstitialDismiss'
})
static onInterstitialDismiss (): Observable<any> {return; }
static onInterstitialDismiss(): Observable<any> { return; }
}