mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
feat(): add IonicNativePlugin base class (#1425)
* add base class * properties are static * some fixes * tslint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Plugin, Cordova, CordovaFiniteObservable } from '@ionic-native/core';
|
||||
import { Plugin, Cordova, CordovaFiniteObservable, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@@ -48,7 +48,7 @@ import { Injectable } from '@angular/core';
|
||||
platforms: ['Android', 'Browser', 'iOS']
|
||||
})
|
||||
@Injectable()
|
||||
export class PhotoLibrary {
|
||||
export class PhotoLibrary extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Retrieves library items. Library item contains photo metadata like width and height, as well as photoURL and thumbnailURL.
|
||||
|
||||
Reference in New Issue
Block a user