Merge in v5 code

This commit is contained in:
Ibby Hadeed
2017-12-28 07:28:44 -05:00
parent d43fe72f7b
commit 0f9c21ab42
255 changed files with 11473 additions and 6501 deletions
@@ -1,5 +1,6 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Power Management
* @description
@@ -34,21 +35,27 @@ export class PowerManagement extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
acquire(): Promise<any> { return; }
acquire(): Promise<any> {
return;
}
/**
* This acquires a partial wakelock, allowing the screen to be dimmed.
* @returns {Promise<any>}
*/
@Cordova()
dim(): Promise<any> { return; }
dim(): Promise<any> {
return;
}
/**
* Release the wakelock. It's important to do this when you're finished with the wakelock, to avoid unnecessary battery drain.
* @returns {Promise<any>}
*/
@Cordova()
release(): Promise<any> { return; }
release(): Promise<any> {
return;
}
/**
* By default, the plugin will automatically release a wakelock when your app is paused (e.g. when the screen is turned off, or the user switches to another app).
@@ -57,5 +64,7 @@ export class PowerManagement extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
setReleaseOnPause(set: boolean): Promise<any> { return; }
setReleaseOnPause(set: boolean): Promise<any> {
return;
}
}