Merge branch 'master' of https://github.com/driftyco/ionic-native
This commit is contained in:
commit
4251d1fba5
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# http://editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
insert_final_newline = false
|
||||||
|
trim_trailing_whitespace = false
|
@ -52,6 +52,7 @@ import {LaunchNavigator} from './plugins/launchnavigator';
|
|||||||
import {LocalNotifications} from './plugins/localnotifications';
|
import {LocalNotifications} from './plugins/localnotifications';
|
||||||
import {MediaPlugin} from './plugins/media';
|
import {MediaPlugin} from './plugins/media';
|
||||||
import {Network, Connection} from './plugins/network';
|
import {Network, Connection} from './plugins/network';
|
||||||
|
import {Printer} from './plugins/printer';
|
||||||
import {Push} from './plugins/push';
|
import {Push} from './plugins/push';
|
||||||
import {SafariViewController} from './plugins/safari-view-controller';
|
import {SafariViewController} from './plugins/safari-view-controller';
|
||||||
import {Screenshot} from './plugins/screenshot';
|
import {Screenshot} from './plugins/screenshot';
|
||||||
@ -85,6 +86,7 @@ export * from './plugins/inappbrowser';
|
|||||||
export * from './plugins/launchnavigator';
|
export * from './plugins/launchnavigator';
|
||||||
export * from './plugins/localnotifications';
|
export * from './plugins/localnotifications';
|
||||||
export * from './plugins/media';
|
export * from './plugins/media';
|
||||||
|
export * from './plugins/printer';
|
||||||
export * from './plugins/push';
|
export * from './plugins/push';
|
||||||
export * from './plugins/safari-view-controller';
|
export * from './plugins/safari-view-controller';
|
||||||
export * from './plugins/sms';
|
export * from './plugins/sms';
|
||||||
@ -183,6 +185,7 @@ window['IonicNative'] = {
|
|||||||
LocalNotifications: LocalNotifications,
|
LocalNotifications: LocalNotifications,
|
||||||
MediaPlugin: MediaPlugin,
|
MediaPlugin: MediaPlugin,
|
||||||
Network: Network,
|
Network: Network,
|
||||||
|
Printer: Printer,
|
||||||
Push: Push,
|
Push: Push,
|
||||||
SafariViewController: SafariViewController,
|
SafariViewController: SafariViewController,
|
||||||
Screenshot: Screenshot,
|
Screenshot: Screenshot,
|
||||||
|
@ -10,6 +10,7 @@ import {Plugin, Cordova} from './plugin';
|
|||||||
* import {BackgroundMode} from 'ionic-native';
|
* import {BackgroundMode} from 'ionic-native';
|
||||||
*
|
*
|
||||||
* BackgroundMode.enable();
|
* BackgroundMode.enable();
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
plugin: 'de.appplant.cordova.plugin.background-mode',
|
plugin: 'de.appplant.cordova.plugin.background-mode',
|
||||||
|
@ -34,7 +34,7 @@ export interface DeeplinkMatch {
|
|||||||
@Plugin({
|
@Plugin({
|
||||||
plugin: 'ionic-plugin-deeplinks',
|
plugin: 'ionic-plugin-deeplinks',
|
||||||
pluginRef: 'IonicDeeplink',
|
pluginRef: 'IonicDeeplink',
|
||||||
repo: 'https://github.com/driftyo/ionic-plugin-deeplinks',
|
repo: 'https://github.com/driftyco/ionic-plugin-deeplinks',
|
||||||
platforms: ['iOS', 'Android']
|
platforms: ['iOS', 'Android']
|
||||||
})
|
})
|
||||||
export class Deeplinks {
|
export class Deeplinks {
|
||||||
|
@ -14,7 +14,7 @@ import {Plugin, Cordova} from './plugin';
|
|||||||
@Plugin({
|
@Plugin({
|
||||||
plugin: 'cordova-plugin-globalization',
|
plugin: 'cordova-plugin-globalization',
|
||||||
pluginRef: 'navigator.globalization',
|
pluginRef: 'navigator.globalization',
|
||||||
repo: 'https: //github.com/apache/cordova-plugin-globalization'
|
repo: 'https://github.com/apache/cordova-plugin-globalization'
|
||||||
})
|
})
|
||||||
export class Globalization {
|
export class Globalization {
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import {Cordova, Plugin} from './plugin';
|
import { Cordova, CordovaInstance, Plugin } from './plugin';
|
||||||
import {Observable} from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
import {CordovaInstance} from './plugin';
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* Created by Ibrahim on 3/29/2016.
|
* Created by Ibrahim on 3/29/2016.
|
||||||
@ -92,15 +91,11 @@ export class GoogleMap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setDebuggable(isDebuggable: boolean): void {
|
setDebuggable(isDebuggable: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setClickable(isClickable: boolean): void {
|
setClickable(isClickable: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,15 +123,11 @@ export class GoogleMap {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
showDialog(): void {
|
showDialog(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
closeDialog(): void {
|
closeDialog(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,69 +136,47 @@ export class GoogleMap {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setCenter(latLng: GoogleMapsLatLng): void {
|
setCenter(latLng: GoogleMapsLatLng): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setZoom(zoomLevel: number): void {
|
setZoom(zoomLevel: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setMapTypeId(typeId: string): void {
|
setMapTypeId(typeId: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setTilt(tiltLevel: number): void {
|
setTilt(tiltLevel: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
animateCamera(animateCameraOptions: AnimateCameraOptions): void {
|
animateCamera(animateCameraOptions: AnimateCameraOptions): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
moveCamera(cameraPosition: CameraPosition): void {
|
moveCamera(cameraPosition: CameraPosition): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setMyLocationEnabled(enabled: boolean): void {
|
setMyLocationEnabled(enabled: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setIndoorEnabled(enabled: boolean): void {
|
setIndoorEnabled(enabled: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setTrafficEnabled(enabled: boolean): void {
|
setTrafficEnabled(enabled: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setCompassEnabled(enabled: boolean): void {
|
setCompassEnabled(enabled: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setAllGesturesEnabled(enabled: boolean): void {
|
setAllGesturesEnabled(enabled: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,45 +257,31 @@ export class GoogleMap {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setDiv(domNode: HTMLElement): void {
|
setDiv(domNode: HTMLElement): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setVisible(visible: boolean): void {
|
setVisible(visible: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setOptions(options: any): void {
|
setOptions(options: any): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setBackgroundColor(backgroundColor: string): void {
|
setBackgroundColor(backgroundColor: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setPadding(top?: number, right?: number, bottom?: number, left?: number): void {
|
setPadding(top?: number, right?: number, bottom?: number, left?: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
clear(): void {
|
clear(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
refreshLayout(): void {
|
refreshLayout(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,15 +300,11 @@ export class GoogleMap {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
panBy(): void {
|
panBy(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -447,9 +398,7 @@ export class GoogleMapsMarker {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
isVisible(): boolean {
|
isVisible(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -458,132 +407,92 @@ export class GoogleMapsMarker {
|
|||||||
setVisible(visible: boolean): void {
|
setVisible(visible: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getHashCode(): string {
|
getHashCode(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setOpacity(alpha: number): void {
|
setOpacity(alpha: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getOpacity(): number {
|
getOpacity(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setZIndex(): void {
|
setZIndex(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setIconAnchor(x: number, y: number): void {
|
setIconAnchor(x: number, y: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setInfoWindowAnchor(x: number, y: number): void {
|
setInfoWindowAnchor(x: number, y: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setDraggable(draggable: boolean): void {
|
setDraggable(draggable: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
isDraggable(): boolean {
|
isDraggable(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setFlat(flat: boolean): void {
|
setFlat(flat: boolean): void {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setIcon(icon: GoogleMapsMarkerIcon): void {
|
setIcon(icon: GoogleMapsMarkerIcon): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setTitle(title: string): void {
|
setTitle(title: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getTitle(): string {
|
getTitle(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setSnippet(snippet: string): void {
|
setSnippet(snippet: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getSnippet(): string {
|
getSnippet(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setRotation(rotation: number): void {
|
setRotation(rotation: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getRotation(): number {
|
getRotation(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
showInfoWindow(): number {
|
showInfoWindow(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
hideInfoWindow(): number {
|
hideInfoWindow(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setPosition(latLng: GoogleMapsLatLng): void {
|
setPosition(latLng: GoogleMapsLatLng): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -592,16 +501,12 @@ export class GoogleMapsMarker {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getMap(): GoogleMap {
|
getMap(): GoogleMap {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setAnimation(animation: string): void {
|
setAnimation(animation: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -639,97 +544,67 @@ export class GoogleMapsCircle {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getCenter(): GoogleMapsLatLng {
|
getCenter(): GoogleMapsLatLng {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getRadius(): number {
|
getRadius(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getStrokeColor(): string {
|
getStrokeColor(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getVisible(): boolean {
|
getVisible(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getZIndex(): number {
|
getZIndex(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setCenter(latLng: GoogleMapsLatLng): void {
|
setCenter(latLng: GoogleMapsLatLng): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setFillColor(fillColor: string): void {
|
setFillColor(fillColor: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setStrokeColor(strokeColor: string): void {
|
setStrokeColor(strokeColor: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setStrokeWidth(strokeWidth: number): void {
|
setStrokeWidth(strokeWidth: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setVisible(visible: boolean): void {
|
setVisible(visible: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setZIndex(zIndex: number): void {
|
setZIndex(zIndex: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
setRadius(radius: number): void {
|
setRadius(radius: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
getMap(): GoogleMap {
|
getMap(): GoogleMap {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -761,60 +636,60 @@ export class GoogleMapsPolyline {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getPoints(): Array<GoogleMapsLatLng> {
|
getPoints(): Array<GoogleMapsLatLng> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getCOlor(): string {
|
getCOlor(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getWidth(): number {
|
getWidth(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getGeodesic(): boolean {
|
getGeodesic(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getZIndex(): number {
|
getZIndex(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setPoints(points: Array<GoogleMapsLatLng>): void {
|
setPoints(points: Array<GoogleMapsLatLng>): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setColor(color: string): void {
|
setColor(color: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setWidth(width: number): void {
|
setWidth(width: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setVisible(visible: boolean): void {
|
setVisible(visible: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setZIndex(zIndex: number): void {
|
setZIndex(zIndex: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setGeoDesic(geoDesic: boolean): void {
|
setGeoDesic(geoDesic: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getMap(): GoogleMap {
|
getMap(): GoogleMap {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -853,70 +728,70 @@ export class GoogleMapsPolygon {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getPoints(): Array<GoogleMapsLatLng> {
|
getPoints(): Array<GoogleMapsLatLng> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getStrokeColor(): string {
|
getStrokeColor(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getFillColor(): string {
|
getFillColor(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getStrokeWidth(): number {
|
getStrokeWidth(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getGeodesic(): boolean {
|
getGeodesic(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getVisible(): boolean {
|
getVisible(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getZIndex(): boolean {
|
getZIndex(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setPoints(points: Array<GoogleMapsLatLng>): void {
|
setPoints(points: Array<GoogleMapsLatLng>): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setStrokeColor(strokeColor: string): void {
|
setStrokeColor(strokeColor: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setFillColor(fillColor: string): void {
|
setFillColor(fillColor: string): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setStrokeWidth(strokeWidth: number): void {
|
setStrokeWidth(strokeWidth: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setVisible(visible: boolean): void {
|
setVisible(visible: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setZIndex(zIndex: number): void {
|
setZIndex(zIndex: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setGeodesic(geodesic: boolean): void {
|
setGeodesic(geodesic: boolean): void {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -940,47 +815,47 @@ export class GoogleMapsTileOverlay {
|
|||||||
constructor(private _objectInstance: any) {
|
constructor(private _objectInstance: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getVisible(): boolean {
|
getVisible(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setVisible(visible: boolean): void {
|
setVisible(visible: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getFadeIn(): boolean {
|
getFadeIn(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setFadeIn(fadeIn: boolean): void {
|
setFadeIn(fadeIn: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getZIndex(): number {
|
getZIndex(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setZIndex(zIndex: number): void {
|
setZIndex(zIndex: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getOpacity(): number {
|
getOpacity(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setOpacity(opacity: number): void {
|
setOpacity(opacity: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
clearTileCache(): void {
|
clearTileCache(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1006,38 +881,38 @@ export class GoogleMapsGroundOverlay {
|
|||||||
constructor(private _objectInstance: any) {
|
constructor(private _objectInstance: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setBearing(bearing: number): void {
|
setBearing(bearing: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getBearing(): number {
|
getBearing(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setOpacity(opacity: number): void {
|
setOpacity(opacity: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getOpacity(): number {
|
getOpacity(): number {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setVisible(visible: boolean): void {
|
setVisible(visible: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getVisible(): boolean {
|
getVisible(): boolean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
setImage(image: string): void {
|
setImage(image: string): void {
|
||||||
};
|
};
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1060,12 +935,47 @@ export class GoogleMapsKmlOverlay {
|
|||||||
constructor(private _objectInstance: any) {
|
constructor(private _objectInstance: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
remove(): void {
|
remove(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({sync: true})
|
@CordovaInstance({ sync: true })
|
||||||
getOverlays(): Array<GoogleMapsPolyline|GoogleMapsPolygon|GoogleMapsMarker> {
|
getOverlays(): Array<GoogleMapsPolyline | GoogleMapsPolygon | GoogleMapsMarker> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
export class GoogleMapsLatLngBounds {
|
||||||
|
private _objectInstance: any;
|
||||||
|
|
||||||
|
constructor(public southwest: GoogleMapsLatLng, public northeast: GoogleMapsLatLng) {
|
||||||
|
this._objectInstance = new plugin.google.maps.LatLngBounds([southwest, northeast]);
|
||||||
|
}
|
||||||
|
|
||||||
|
@CordovaInstance({ sync: true })
|
||||||
|
toString(): string {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@CordovaInstance({ sync: true })
|
||||||
|
toUrlValue(precision?: number): string {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@CordovaInstance({ sync: true })
|
||||||
|
extend(LatLng: GoogleMapsLatLng): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
@CordovaInstance({ sync: true })
|
||||||
|
contains(LatLng: GoogleMapsLatLng): boolean {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@CordovaInstance({ sync: true })
|
||||||
|
getCenter(): GoogleMapsLatLng {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1084,9 +994,7 @@ export class GoogleMapsLatLng {
|
|||||||
return this.lat === other.lat && this.lng === other.lng;
|
return this.lat === other.lat && this.lng === other.lng;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({ sync: true })
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
toString(): string {
|
toString(): string {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
64
src/plugins/printer.ts
Normal file
64
src/plugins/printer.ts
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
import {Plugin, Cordova} from './plugin';
|
||||||
|
declare var cordova: any;
|
||||||
|
|
||||||
|
export interface PrintOptions {
|
||||||
|
/**
|
||||||
|
* The name of the print job and the document
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The network URL of the printer.
|
||||||
|
* Only supported on iOS.
|
||||||
|
*/
|
||||||
|
printerId?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the duplex mode to use for the print job.
|
||||||
|
* Either double-sided (duplex:true) or single-sided (duplex:false).
|
||||||
|
* Double-sided by default.
|
||||||
|
* Only supported on iOS
|
||||||
|
*/
|
||||||
|
duplex?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The orientation of the printed content, portrait or landscape
|
||||||
|
* Portrait by default.
|
||||||
|
*/
|
||||||
|
landscape?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If your application only prints black text, setting this property to true can result in better performance in many cases.
|
||||||
|
* False by default.
|
||||||
|
*/
|
||||||
|
grayscale?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Size and position of the print view
|
||||||
|
*/
|
||||||
|
bounds?: number[] | any;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Plugin({
|
||||||
|
plugin: 'de.appplant.cordova.plugin.printer',
|
||||||
|
pluginRef: 'cordova.plugins.printer',
|
||||||
|
repo: 'https://github.com/katzer/cordova-plugin-printer.git',
|
||||||
|
platforms: ['Android', 'iOS']
|
||||||
|
})
|
||||||
|
export class Printer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether to device is capable of printing.
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
static isAvailable(): Promise<boolean> { return; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends content to the printer.
|
||||||
|
* @param {content} The content to print. Can be a URL or an HTML string. If a HTML DOM Object is provided, its innerHtml property value will be used.
|
||||||
|
* @param {options} The options to pass to the printer
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
static print(content: string | HTMLElement, options?: PrintOptions): Promise<any> { return; }
|
||||||
|
}
|
@ -59,7 +59,7 @@ export class SafariViewController {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
callbackOrder: 'reverse'
|
callbackOrder: 'reverse'
|
||||||
})
|
})
|
||||||
static show(options?: SafariViewControllerOptions): void {}
|
static show(options?: SafariViewControllerOptions): Promise<any> {return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hides Safari View Controller
|
* Hides Safari View Controller
|
||||||
|
@ -2,6 +2,30 @@ import {CordovaInstance, Plugin, Cordova} from './plugin';
|
|||||||
declare var sqlitePlugin;
|
declare var sqlitePlugin;
|
||||||
/**
|
/**
|
||||||
* @name SQLite
|
* @name SQLite
|
||||||
|
*
|
||||||
|
* @description
|
||||||
|
* Access SQLite databases on the device.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { SQLite } from 'ionic-native';
|
||||||
|
*
|
||||||
|
* let db = new SQLite();
|
||||||
|
* db.openDatabse({
|
||||||
|
* name: 'data.db',
|
||||||
|
* location: 'default' // the location field is required
|
||||||
|
* }).then(() => {
|
||||||
|
* db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {
|
||||||
|
*
|
||||||
|
* }, (err) => {
|
||||||
|
* console.error('Unable to execute sql', err);
|
||||||
|
* })
|
||||||
|
* }, (err) => {
|
||||||
|
* console.error('Unable to open database', err);
|
||||||
|
* });
|
||||||
|
* ```
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
pluginRef: 'sqlitePlugin',
|
pluginRef: 'sqlitePlugin',
|
||||||
@ -15,13 +39,44 @@ export class SQLite {
|
|||||||
return this._objectInstance.databaseFeatures;
|
return this._objectInstance.databaseFeatures;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor (config: any) {
|
constructor () {}
|
||||||
new Promise((resolve, reject) => {
|
|
||||||
sqlitePlugin.openDatabase(config, resolve, reject);
|
/**
|
||||||
}).then(
|
* Open or create a SQLite database file.
|
||||||
db => this._objectInstance = db,
|
*
|
||||||
error => console.warn(error)
|
* See the plugin docs for an explanation of all options: https://github.com/litehelpers/Cordova-sqlite-storage#opening-a-database
|
||||||
);
|
*
|
||||||
|
* @param config the config for opening the database.
|
||||||
|
* @usage
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { SQLite } from 'ionic-native';
|
||||||
|
*
|
||||||
|
* let db = new SQLite();
|
||||||
|
* db.openDatabse({
|
||||||
|
* name: 'data.db',
|
||||||
|
* location: 'default' // the location field is required
|
||||||
|
* }).then(() => {
|
||||||
|
* db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {
|
||||||
|
*
|
||||||
|
* }, (err) => {
|
||||||
|
* console.error('Unable to execute sql', err);
|
||||||
|
* })
|
||||||
|
* }, (err) => {
|
||||||
|
* console.error('Unable to open database', err);
|
||||||
|
* });
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
openDatabase (config: any) : Promise<any> {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
sqlitePlugin.openDatabase(config, db => {
|
||||||
|
this._objectInstance = db;
|
||||||
|
resolve(db);
|
||||||
|
}, error => {
|
||||||
|
console.warn(error)
|
||||||
|
reject(error);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({
|
||||||
@ -48,6 +103,19 @@ export class SQLite {
|
|||||||
})
|
})
|
||||||
start (): void {}
|
start (): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute SQL on the opened database. Note, you must call `openDatabase` first, and
|
||||||
|
* ensure it resolved and successfully opened the database.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* db.executeSql('SELECT FROM puppies WHERE type = ?', ['cavalier']).then((resultSet) => {
|
||||||
|
* // Access the items through resultSet.rows
|
||||||
|
* // resultSet.rows.item(i)
|
||||||
|
* }, (err) => {})
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
@CordovaInstance()
|
@CordovaInstance()
|
||||||
executeSql (statement: string, params: any): Promise<any> {return; }
|
executeSql (statement: string, params: any): Promise<any> {return; }
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ export interface ToastOptions {
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Toast.show("I'm a toast", 5000, "center").subscribe(
|
* Toast.show("I'm a toast", "5000", "center").subscribe(
|
||||||
* toast => {
|
* toast => {
|
||||||
* console.log(toast);
|
* console.log(toast);
|
||||||
* }
|
* }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user