Compare commits

...

7 Commits

Author SHA1 Message Date
Ibby 97ba9b4fe1 chore(): update changelog 2017-03-18 18:34:42 -04:00
Ibby 96369db3a9 2.9.0 2017-03-18 18:34:29 -04:00
Ibby 961cff185d fix(background-geolocation): configure returns an observable
Configure no longer returns a promise or takes callbacks as parameters.
2017-03-18 18:33:01 -04:00
Quentin 9a733c3b4a docs(in-app-browser): fix typo (#1183)
text fix
2017-03-13 17:17:30 -04:00
gujiman 95ac7e1855 feat(background-mode): added moveToBackground and moveToForeground (#1181)
feat(background-mode): add missing functions moveToBackground and moveToForeground as explained in https://github.com/driftyco/ionic-native/issues/1180
2017-03-13 16:59:20 -04:00
Lukas Heddendorp 6683aa450c Updated AppPreferences docs (#1175)
Close code block to make it render properly
2017-03-12 14:59:37 -04:00
Ibby Hadeed d0cb3049e5 Remove overeloads 2017-03-10 10:41:20 -05:00
7 changed files with 43 additions and 40 deletions
+16 -1
View File
@@ -1,3 +1,18 @@
<a name="2.9.0"></a>
# [2.9.0](https://github.com/driftyco/ionic-native/compare/v2.8.1...v2.9.0) (2017-03-18)
### Bug Fixes
* **background-geolocation:** configure returns an observable ([961cff1](https://github.com/driftyco/ionic-native/commit/961cff1))
### Features
* **background-mode:** added moveToBackground and moveToForeground ([#1181](https://github.com/driftyco/ionic-native/issues/1181)) ([95ac7e1](https://github.com/driftyco/ionic-native/commit/95ac7e1))
<a name="2.8.1"></a>
## [2.8.1](https://github.com/driftyco/ionic-native/compare/v2.8.0...v2.8.1) (2017-03-10)
@@ -310,7 +325,7 @@
### BREAKING CHANGES
* device: device property no longer exists
* **device:** device property no longer exists
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
"version": "2.8.1",
"version": "2.9.0",
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
"main": "dist/es5/index.js",
"module": "dist/esm/index.js",
+1 -1
View File
@@ -12,7 +12,7 @@ import { Observable } from 'rxjs/Observable';
*
* AppPreferences.fetch('key').then((res) => { console.log(res); });
*
*
*```
*/
@Plugin({
pluginName: 'AppPreferences',
+6 -4
View File
@@ -1,4 +1,5 @@
import {Cordova, Plugin} from './plugin';
import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable';
declare var window;
@@ -363,12 +364,13 @@ export class BackgroundGeolocation {
* Configure the plugin.
*
* @param options {BackgroundGeolocationConfig} options An object of type Config
* @return {Promise<any>}
* @return {Observable<any>}
*/
@Cordova({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
observable: true
})
static configure(options: BackgroundGeolocationConfig): Promise<any> { return; }
static configure(options: BackgroundGeolocationConfig): Observable<any> { return; }
/**
* Turn ON the background-geolocation system.
+18
View File
@@ -123,6 +123,24 @@ export class BackgroundMode {
})
static on(event: string): Observable<any> { return; }
/**
* Android allows to programmatically move from foreground to background.
*/
@Cordova({
platforms: ['Android'],
sync: true
})
static moveToBackground(): void {}
/**
* Android allows to programmatically move from background to foreground.
*/
@Cordova({
platforms: ['Android'],
sync: true
})
static moveToForeground(): void {}
/**
* Override the back button on Android to go to background instead of closing the app.
*/
+1 -1
View File
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs/Observable';
declare var cordova: any;
export interface InAppBrowserOptions {
/** Set to yes or no to ruen the InAppBrowser's location bar on or off. */
/** Set to yes or no to turn the InAppBrowser's location bar on or off. */
location?: 'yes' | 'no';
/** Set to yes to create the browser and load the page, but not show it. The loadstop event fires when loading is complete.
* Omit or set to no (default) to have the browser open and load normally. */
-32
View File
@@ -76,14 +76,6 @@ export class PhotoLibrary {
})
static getAlbums(): Promise<AlbumItem[]> { return; }
/**
* @private
*/
static getThumbnailURL(photoId: string, options?: GetThumbnailOptions): Promise<string>;
/**
* @private
*/
static getThumbnailURL(libraryItem: LibraryItem, options?: GetThumbnailOptions): Promise<string>;
/**
* Provides means to request URL of thumbnail, with specified size or quality.
* @param photo {string | LibraryItem} Id of photo, or LibraryItem.
@@ -96,14 +88,6 @@ export class PhotoLibrary {
})
static getThumbnailURL(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise<string> { return; }
/**
* @private
*/
static getPhotoURL(photoId: string, options?: GetPhotoOptions): Promise<string>;
/**
* @private
*/
static getPhotoURL(libraryItem: LibraryItem, options?: GetPhotoOptions): Promise<string>;
/**
* Provides means to request photo URL by id.
* @param photo {string | LibraryItem} Id or LibraryItem.
@@ -116,14 +100,6 @@ export class PhotoLibrary {
})
static getPhotoURL(photo: string | LibraryItem, options?: GetPhotoOptions): Promise<string> { return; }
/**
* @private
*/
static getThumbnail(photoId: string, options?: GetThumbnailOptions): Promise<Blob>;
/**
* @private
*/
static getThumbnail(libraryItem: LibraryItem, options?: GetThumbnailOptions): Promise<Blob>;
/**
* Returns thumbnail as Blob.
* @param photo {string | LibraryItem} Id or LibraryItem.
@@ -136,14 +112,6 @@ export class PhotoLibrary {
})
static getThumbnail(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise<Blob> { return; }
/**
* @private
*/
static getPhoto(photoId: string, options?: GetPhotoOptions): Promise<Blob>;
/**
* @private
*/
static getPhoto(libraryItem: LibraryItem, options?: GetPhotoOptions): Promise<Blob>;
/**
* Returns photo as Blob.
* @param photo {string | LibraryItem} Id or LibraryItem.