mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
feat(): add IonicNativePlugin base class (#1425)
* add base class * properties are static * some fixes * tslint
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CordovaInstance, Plugin, CordovaCheck } from '@ionic-native/core';
|
||||
import { CordovaInstance, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core';
|
||||
|
||||
declare var Media: any;
|
||||
|
||||
@@ -217,7 +217,7 @@ export type MediaErrorCallback = (error: MediaError) => void;
|
||||
pluginRef: 'Media'
|
||||
})
|
||||
@Injectable()
|
||||
export class MediaPlugin {
|
||||
export class MediaPlugin extends IonicNativePlugin {
|
||||
|
||||
// Constants
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user