mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
refactoring
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import {Plugin, Cordova} from './plugin';
|
||||
|
||||
declare var window;
|
||||
|
||||
@Plugin({
|
||||
name: 'Geolocation',
|
||||
plugin: 'cordova-plugin-geolocation',
|
||||
pluginRef: 'navigator.geolocation'
|
||||
})
|
||||
export class Device {
|
||||
@Cordova()
|
||||
static getCurrentPosition(options:any){};
|
||||
|
||||
|
||||
// Do this with observables
|
||||
// @Cordova()
|
||||
// static watchPosition;
|
||||
}
|
||||
Reference in New Issue
Block a user