mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
feat(ionicnative): add instance wrapper
closes https://github.com/driftyco/ionic-native/issues/86 https://github.com/driftyco/ionic-native/issues/79
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import {Cordova, Plugin} from "./plugin";
|
||||
import {Observable} from "rxjs/Observable";
|
||||
import {CordovaInstance} from "./plugin";
|
||||
/**
|
||||
* Created by Ibrahim on 3/29/2016.
|
||||
*/
|
||||
declare var plugin : any;
|
||||
/**
|
||||
* @name Google Maps
|
||||
*/
|
||||
@Plugin({
|
||||
pluginRef: 'plugin.google.maps'
|
||||
})
|
||||
export class GoogleMaps {
|
||||
|
||||
private _objectInstance : any;
|
||||
|
||||
constructor (elementId : string, public niggasIn = "paris") {
|
||||
this._objectInstance = {};//plugin.google.maps.Map.getMap(document.getElementById(elementId));
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'plugin.google.maps.event.MAP_READY'
|
||||
})
|
||||
static onInit () : Observable<GoogleMaps> {return}
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
setDebuggable (isDebuggable : boolean) : void {}
|
||||
|
||||
setClickable (isClickable : boolean) : void {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user