chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
import { Injectable } from '@angular/core';
|
2017-09-27 12:56:30 -07:00
|
|
|
import { Cordova, CordovaCheck, CordovaInstance, Plugin, InstanceProperty, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core';
|
2016-09-21 15:04:46 -05:00
|
|
|
import { Observable } from 'rxjs/Observable';
|
2017-02-04 04:32:41 -05:00
|
|
|
import 'rxjs/add/observable/fromEvent';
|
2016-07-08 01:10:28 +02:00
|
|
|
|
2017-07-08 08:43:11 -04:00
|
|
|
|
|
|
|
export type MapType = 'MAP_TYPE_NORMAL' | 'MAP_TYPE_ROADMAP' | 'MAP_TYPE_SATELLITE' | 'MAP_TYPE_HYBRID' | 'MAP_TYPE_TERRAIN' | 'MAP_TYPE_NONE';
|
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
export class LatLng implements ILatLng {
|
|
|
|
|
|
|
|
lat: number;
|
|
|
|
lng: number;
|
|
|
|
|
|
|
|
constructor(lat: number, lng: number) {
|
|
|
|
this.lat = lat;
|
|
|
|
this.lng = lng;
|
|
|
|
}
|
|
|
|
|
|
|
|
equals(other: ILatLng): boolean {
|
|
|
|
return this.lat === other.lat && this.lng === other.lng;
|
|
|
|
}
|
|
|
|
|
|
|
|
toString(): string {
|
|
|
|
return this.lat + ',' + this.lng;
|
|
|
|
}
|
|
|
|
|
|
|
|
toUrlValue(precision?: number): string {
|
|
|
|
precision = precision || 6;
|
|
|
|
|
|
|
|
return this.lat.toFixed(precision) + ',' + this.lng.toFixed(precision);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILatLngBounds {
|
|
|
|
northeast: ILatLng;
|
|
|
|
southwest: ILatLng;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
export class LatLngBounds implements ILatLngBounds {
|
|
|
|
|
|
|
|
private _objectInstance: any;
|
|
|
|
|
|
|
|
@InstanceProperty northeast: ILatLng;
|
|
|
|
@InstanceProperty southwest: ILatLng;
|
|
|
|
@InstanceProperty type: string;
|
|
|
|
|
|
|
|
constructor(points?: ILatLng[]) {
|
|
|
|
this._objectInstance = new (GoogleMaps.getPlugin()).LatLngBounds(points);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts to string
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
toString(): string { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box.
|
|
|
|
* @param precision {number}
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
toUrlValue(precision?: number): string { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extends this bounds to contain the given point.
|
|
|
|
* @param LatLng {ILatLng}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
extend(LatLng: ILatLng): void {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the given lat/lng is in this bounds.
|
|
|
|
* @param LatLng {ILatLng}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
contains(LatLng: ILatLng): boolean { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Computes the center of this LatLngBounds
|
|
|
|
* @return {LatLng}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getCenter(): LatLng { return; }
|
|
|
|
}
|
|
|
|
|
2017-07-08 08:43:11 -04:00
|
|
|
export interface GoogleMapOptions {
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
mapType?: MapType;
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
controls?: {
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Turns the compass on or off.
|
|
|
|
*/
|
|
|
|
compass?: boolean;
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Turns the myLocation picker on or off. If turns on this button, the application displays a permission dialog to obtain the geolocation data.
|
|
|
|
*/
|
|
|
|
myLocationButton?: boolean;
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Turns the indoor picker on or off.
|
|
|
|
*/
|
|
|
|
indoorPicker?: boolean;
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Turns the map toolbar on or off. This option is for Android only.
|
|
|
|
*/
|
2017-08-26 00:37:40 -07:00
|
|
|
mapToolbar?: boolean;
|
2017-09-05 23:34:18 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Turns the zoom controller on or off. This option is for Android only.
|
|
|
|
*/
|
|
|
|
zoom?: boolean;
|
2017-07-08 08:43:11 -04:00
|
|
|
};
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
gestures?: {
|
|
|
|
scroll?: boolean;
|
|
|
|
tilt?: boolean;
|
|
|
|
zoom?: boolean;
|
|
|
|
rotate?: boolean;
|
2017-07-08 08:43:11 -04:00
|
|
|
};
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Map styles
|
|
|
|
* @ref https://developers.google.com/maps/documentation/javascript/style-reference
|
|
|
|
*/
|
|
|
|
styles?: any[];
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Initial camera position
|
|
|
|
*/
|
2017-08-26 00:37:40 -07:00
|
|
|
camera?: CameraPosition<any>;
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
preferences?: {
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Minimum and maximum zoom levels for zooming gestures.
|
|
|
|
*/
|
|
|
|
zoom?: {
|
|
|
|
minZoom?: number;
|
|
|
|
maxZoom?: number;
|
2017-08-26 00:37:40 -07:00
|
|
|
};
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Paddings of controls.
|
|
|
|
*/
|
|
|
|
padding?: {
|
2017-08-26 00:37:40 -07:00
|
|
|
left?: number;
|
|
|
|
top?: number;
|
|
|
|
bottom?: number;
|
|
|
|
right?: number;
|
|
|
|
};
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Turns the 3D buildings layer on or off.
|
|
|
|
*/
|
|
|
|
building?: boolean
|
2017-07-08 08:43:11 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
export interface CameraPosition<T> {
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* The center location of the camera view.
|
|
|
|
*/
|
2017-08-26 00:37:40 -07:00
|
|
|
target?: T;
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* View angle
|
|
|
|
*/
|
|
|
|
tilt?: number;
|
|
|
|
/**
|
|
|
|
* Zoom level
|
|
|
|
*/
|
|
|
|
zoom?: number;
|
|
|
|
/**
|
|
|
|
* Map orientation
|
|
|
|
*/
|
|
|
|
bearing?: number;
|
|
|
|
/**
|
|
|
|
* The duration of animation in milliseconds
|
|
|
|
*/
|
|
|
|
duration?: number;
|
2017-08-26 00:37:40 -07:00
|
|
|
/**
|
|
|
|
* Camera padding in pixel
|
|
|
|
*/
|
|
|
|
padding?: number;
|
2017-07-07 19:13:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface CircleOptions {
|
2017-07-20 17:06:37 -07:00
|
|
|
center?: ILatLng;
|
2017-07-07 19:13:04 -04:00
|
|
|
radius?: number;
|
|
|
|
strokeColor?: string;
|
|
|
|
strokeWidth?: number;
|
|
|
|
fillColor?: string;
|
2017-07-20 17:06:37 -07:00
|
|
|
clickable?: boolean;
|
2017-07-07 19:13:04 -04:00
|
|
|
visible?: boolean;
|
|
|
|
zIndex?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface GeocoderRequest {
|
|
|
|
address?: string | string[];
|
|
|
|
position?: ILatLng | ILatLng[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface GeocoderResult {
|
|
|
|
adminArea?: string;
|
|
|
|
country?: string;
|
|
|
|
countryCode?: string;
|
|
|
|
extra?: {
|
|
|
|
featureName?: string;
|
|
|
|
lines?: Array<string>;
|
|
|
|
permises?: string;
|
|
|
|
phone?: string;
|
|
|
|
url?: string
|
|
|
|
};
|
|
|
|
locale?: string;
|
|
|
|
locality?: string;
|
2017-09-27 12:56:30 -07:00
|
|
|
position?: ILatLng;
|
2017-07-07 19:13:04 -04:00
|
|
|
postalCode?: string;
|
|
|
|
subAdminArea?: string;
|
|
|
|
subLocality?: string;
|
|
|
|
subThoroughfare?: string;
|
|
|
|
thoroughfare?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface GroundOverlayOptions {
|
|
|
|
/**
|
|
|
|
* URL of overlay
|
|
|
|
*/
|
|
|
|
url?: string;
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Bounds, array of ILatLng
|
|
|
|
*/
|
|
|
|
bounds?: Array<ILatLng>;
|
|
|
|
/**
|
|
|
|
* Set to false to ignore click event
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
2017-07-20 17:06:37 -07:00
|
|
|
clickable?: boolean;
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Set to false to hide
|
|
|
|
*/
|
|
|
|
visible?: boolean;
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Opacity. From 0.0 to 1.0 .
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
opacity?: number;
|
|
|
|
/**
|
|
|
|
* Bearing
|
|
|
|
*/
|
|
|
|
bearing?: number;
|
|
|
|
/**
|
|
|
|
* Z-index
|
|
|
|
*/
|
|
|
|
zIndex?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILatLng {
|
|
|
|
lat: number;
|
|
|
|
lng: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MarkerIcon {
|
|
|
|
url?: string;
|
|
|
|
size?: {
|
|
|
|
width?: number;
|
|
|
|
height?: number;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MarkerOptions {
|
|
|
|
/**
|
|
|
|
* The icon image url or properties. Also you can specify HTML Color values. Alternatively you can specify the image as Base64
|
|
|
|
*/
|
|
|
|
icon?: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The content of the infoWindow.
|
|
|
|
*/
|
|
|
|
title?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The snippet of the infoWindow.
|
|
|
|
*/
|
|
|
|
snippet?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The position of the marker.
|
|
|
|
*/
|
2017-07-20 17:06:37 -07:00
|
|
|
position?: ILatLng;
|
2017-07-07 19:13:04 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Specify the anchor of the InfoWindow
|
|
|
|
*/
|
|
|
|
infoWindowAnchor?: number[];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set true if you want to enable to drag the marker. (Default: false) Important! Drag starts after long pressed on the marker.
|
|
|
|
*/
|
|
|
|
draggable?: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set true if you want to use a flat marker. (Default: false)
|
|
|
|
*/
|
|
|
|
flat?: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set rotation angle. (Default: 0)
|
|
|
|
*/
|
|
|
|
rotation?: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set false if you want to hide. (Default: true)
|
|
|
|
*/
|
|
|
|
visible?: boolean;
|
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Specify the options for title. This property work for normal InfoWindow.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
styles?: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Which animation to play when marker is added to a map.
|
|
|
|
*/
|
|
|
|
animation?: string;
|
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
zIndex?: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set to true to disable auto panning when the marker is clicked.
|
|
|
|
*/
|
|
|
|
disableAutoPan?: boolean;
|
|
|
|
}
|
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
export interface MarkerClusterOptions {
|
|
|
|
maxZoomLevel?: number;
|
|
|
|
boundsDraw?: boolean;
|
|
|
|
markers: MarkerOptions[];
|
2017-09-01 18:38:26 -07:00
|
|
|
icons: any[];
|
2017-08-26 00:37:40 -07:00
|
|
|
}
|
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
export interface MyLocation {
|
|
|
|
latLng?: LatLng;
|
|
|
|
elapsedRealtimeNanos?: any;
|
|
|
|
time?: string;
|
|
|
|
accuracy?: any;
|
|
|
|
bearing?: number;
|
|
|
|
altitude?: any;
|
|
|
|
speed?: number;
|
|
|
|
provider?: any;
|
|
|
|
hashCode?: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MyLocationOptions {
|
|
|
|
enableHighAccuracy?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PolygonOptions {
|
2017-07-20 17:06:37 -07:00
|
|
|
points?: Array<ILatLng>;
|
2017-07-07 19:13:04 -04:00
|
|
|
geodesic?: boolean;
|
|
|
|
strokeColor?: string;
|
|
|
|
strokeWidth?: number;
|
|
|
|
fillColor?: string;
|
|
|
|
visible?: boolean;
|
|
|
|
zIndex?: number;
|
2017-09-27 12:56:30 -07:00
|
|
|
addHole?: Array<Array<ILatLng>>;
|
2017-07-07 19:13:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface PolylineOptions {
|
2017-07-20 17:06:37 -07:00
|
|
|
points?: Array<ILatLng>;
|
2017-07-07 19:13:04 -04:00
|
|
|
visible?: boolean;
|
|
|
|
geodesic?: boolean;
|
|
|
|
color?: string;
|
|
|
|
width?: number;
|
|
|
|
zIndex?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TileOverlayOptions {
|
|
|
|
getTile: (x: number, y: number, zoom: number) => string;
|
|
|
|
visible?: boolean;
|
|
|
|
zIndex?: number;
|
|
|
|
tileSize?: number;
|
|
|
|
opacity?: number;
|
2017-08-26 09:51:39 +02:00
|
|
|
debug?: boolean;
|
2017-07-07 19:13:04 -04:00
|
|
|
}
|
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
export class VisibleRegion implements ILatLngBounds {
|
|
|
|
private _objectInstance: any;
|
|
|
|
|
|
|
|
@InstanceProperty northeast: ILatLng;
|
|
|
|
@InstanceProperty southwest: ILatLng;
|
|
|
|
@InstanceProperty farLeft: ILatLng;
|
|
|
|
@InstanceProperty farRight: ILatLng;
|
|
|
|
@InstanceProperty nearLeft: ILatLng;
|
|
|
|
@InstanceProperty nearRight: ILatLng;
|
|
|
|
@InstanceProperty type: string;
|
|
|
|
|
|
|
|
constructor(southwest: LatLngBounds, northeast: LatLngBounds, farLeft: ILatLng, farRight: ILatLng, nearLeft: ILatLng, nearRight: ILatLng) {
|
|
|
|
this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion(southwest, northeast, farLeft, farRight, nearLeft, nearRight);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts to string
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
toString(): string { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box.
|
|
|
|
* @param precision {number}
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
toUrlValue(precision?: number): string { return; }
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the given lat/lng is in this bounds.
|
|
|
|
* @param LatLng {ILatLng}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
contains(LatLng: ILatLng): boolean { return; }
|
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
}
|
2016-07-08 01:10:28 +02:00
|
|
|
|
2016-06-01 06:20:25 -04:00
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-01 06:20:25 -04:00
|
|
|
* You can listen to these events where appropriate
|
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
export const GoogleMapsEvent: { [eventName: string]: string; } = {
|
|
|
|
MAP_READY: 'map_ready',
|
2017-08-26 00:37:40 -07:00
|
|
|
MAP_LOADED: 'map_loaded',
|
2017-07-07 19:13:04 -04:00
|
|
|
MAP_CLICK: 'map_click',
|
|
|
|
MAP_LONG_CLICK: 'map_long_click',
|
2016-06-23 12:31:57 +02:00
|
|
|
MY_LOCATION_BUTTON_CLICK: 'my_location_button_click',
|
|
|
|
INDOOR_BUILDING_FOCUSED: 'indoor_building_focused',
|
|
|
|
INDOOR_LEVEL_ACTIVATED: 'indoor_level_activated',
|
2017-07-07 19:13:04 -04:00
|
|
|
CAMERA_MOVE_START: 'camera_move_start',
|
|
|
|
CAMERA_MOVE: 'camera_move',
|
|
|
|
CAMERA_MOVE_END: 'camera_move_end',
|
2017-08-26 00:37:40 -07:00
|
|
|
OVERLAY_CLICK: 'overlay_click',
|
2017-07-07 19:13:04 -04:00
|
|
|
POLYGON_CLICK: 'polygon_click',
|
|
|
|
POLYLINE_CLICK: 'polyline_click',
|
|
|
|
CIRCLE_CLICK: 'circle_click',
|
2017-08-26 00:37:40 -07:00
|
|
|
GROUND_OVERLAY_CLICK: 'groundoverlay_click',
|
2016-06-23 12:31:57 +02:00
|
|
|
INFO_CLICK: 'info_click',
|
2017-07-07 19:13:04 -04:00
|
|
|
INFO_LONG_CLICK: 'info_long_click',
|
|
|
|
INFO_CLOSE: 'info_close',
|
|
|
|
INFO_OPEN: 'info_open',
|
2017-08-26 00:37:40 -07:00
|
|
|
CLUSTER_CLICK: 'cluster_click',
|
2017-07-07 19:13:04 -04:00
|
|
|
MARKER_CLICK: 'marker_click',
|
|
|
|
MARKER_DRAG: 'marker_drag',
|
|
|
|
MARKER_DRAG_START: 'marker_drag_start',
|
2017-08-26 00:37:40 -07:00
|
|
|
MARKER_DRAG_END: 'marker_drag_end',
|
|
|
|
MAP_DRAG: 'map_drag',
|
|
|
|
MAP_DRAG_START: 'map_drag_start',
|
|
|
|
MAP_DRAG_END: 'map_drag_end'
|
2016-06-01 16:36:12 -04:00
|
|
|
};
|
|
|
|
|
2016-06-09 16:48:40 -04:00
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
export const GoogleMapsAnimation: { [animationName: string]: string; } = {
|
2016-06-23 12:31:57 +02:00
|
|
|
BOUNCE: 'BOUNCE',
|
|
|
|
DROP: 'DROP'
|
2016-06-01 06:20:25 -04:00
|
|
|
};
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2017-03-01 22:13:13 -05:00
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2017-03-01 22:13:13 -05:00
|
|
|
*/
|
2017-07-08 08:45:09 -04:00
|
|
|
export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = {
|
2017-04-30 20:36:22 +02:00
|
|
|
NORMAL: 'MAP_TYPE_NORMAL',
|
|
|
|
ROADMAP: 'MAP_TYPE_ROADMAP',
|
|
|
|
SATELLITE: 'MAP_TYPE_SATELLITE',
|
2017-07-07 19:13:04 -04:00
|
|
|
HYBRID: 'MAP_TYPE_HYBRID',
|
|
|
|
TERRAIN: 'MAP_TYPE_TERRAIN',
|
|
|
|
NONE: 'MAP_TYPE_NONE'
|
2017-03-02 01:57:44 +00:00
|
|
|
};
|
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* @name Google Maps
|
2017-07-11 09:29:12 -04:00
|
|
|
* @description
|
|
|
|
* This plugin uses the native Google Maps SDK
|
|
|
|
* Note: As of Ionic native 4.0, this using the 2.0 version of the google maps plugin. Please make sure your plugin is updated
|
2017-07-07 19:13:04 -04:00
|
|
|
* @usage
|
|
|
|
* ```typescript
|
|
|
|
* import {
|
|
|
|
* GoogleMaps,
|
|
|
|
* GoogleMap,
|
|
|
|
* GoogleMapsEvent,
|
2017-08-26 00:37:40 -07:00
|
|
|
* GoogleMapOptions,
|
2017-07-07 19:13:04 -04:00
|
|
|
* CameraPosition,
|
|
|
|
* MarkerOptions,
|
|
|
|
* Marker
|
|
|
|
* } from '@ionic-native/google-maps';
|
2017-08-26 00:37:40 -07:00
|
|
|
* import { Component } from "@angular/core/";
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* @Component({
|
|
|
|
* selector: 'page-home',
|
|
|
|
* templateUrl: 'home.html'
|
|
|
|
* })
|
|
|
|
* export class HomePage {
|
|
|
|
* map: GoogleMap;
|
|
|
|
* mapElement: HTMLElement;
|
|
|
|
* constructor(private googleMaps: GoogleMaps) { }
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* ionViewDidLoad() {
|
|
|
|
* this.loadMap();
|
|
|
|
* }
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* loadMap() {
|
|
|
|
* this.mapElement = document.getElementById('map');
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* let mapOptions: GoogleMapOptions = {
|
|
|
|
* camera: {
|
|
|
|
* target: {
|
|
|
|
* lat: 43.0741904,
|
|
|
|
* lng: -89.3809802
|
|
|
|
* },
|
|
|
|
* zoom: 18,
|
|
|
|
* tilt: 30
|
|
|
|
* }
|
|
|
|
* };
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* this.map = this.googleMaps.create(this.mapElement, mapOptions);
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* // Wait the MAP_READY before using any methods.
|
|
|
|
* this.map.one(GoogleMapsEvent.MAP_READY)
|
|
|
|
* .then(() => {
|
|
|
|
* console.log('Map is ready!');
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* // Now you can use all methods safely.
|
|
|
|
* this.map.addMarker({
|
|
|
|
* title: 'Ionic',
|
|
|
|
* icon: 'blue',
|
|
|
|
* animation: 'DROP',
|
|
|
|
* position: {
|
|
|
|
* lat: 43.0741904,
|
|
|
|
* lng: -89.3809802
|
|
|
|
* }
|
|
|
|
* })
|
|
|
|
* .then(marker => {
|
|
|
|
* marker.on(GoogleMapsEvent.MARKER_CLICK)
|
|
|
|
* .subscribe(() => {
|
|
|
|
* alert('clicked');
|
|
|
|
* });
|
|
|
|
* });
|
2017-07-07 19:13:04 -04:00
|
|
|
*
|
2017-08-26 00:37:40 -07:00
|
|
|
* });
|
|
|
|
* }
|
2017-07-07 19:13:04 -04:00
|
|
|
* }
|
2017-08-26 00:37:40 -07:00
|
|
|
*
|
2017-07-07 19:13:04 -04:00
|
|
|
* ```
|
|
|
|
* @classes
|
|
|
|
* GoogleMap
|
|
|
|
* Circle
|
2017-07-20 17:06:37 -07:00
|
|
|
* Encoding
|
2017-07-07 19:13:04 -04:00
|
|
|
* Environment
|
|
|
|
* Geocoder
|
2017-07-10 09:59:35 -04:00
|
|
|
* GroundOverlay
|
|
|
|
* HtmlInfoWindow
|
|
|
|
* Geocoder
|
|
|
|
* LatLng
|
|
|
|
* LatLngBounds
|
|
|
|
* Marker
|
2017-08-26 00:37:40 -07:00
|
|
|
* MarkerCluster
|
2017-07-10 09:59:35 -04:00
|
|
|
* Polygon
|
|
|
|
* Polyline
|
2017-07-20 17:06:37 -07:00
|
|
|
* Spherical
|
2017-07-10 09:59:35 -04:00
|
|
|
* TileOverlay
|
|
|
|
* BaseClass
|
|
|
|
* BaseArrayClass
|
2017-07-07 19:13:04 -04:00
|
|
|
* @interfaces
|
2017-07-10 09:59:35 -04:00
|
|
|
* GoogleMapOptions
|
|
|
|
* CameraPosition
|
|
|
|
* CircleOptions
|
|
|
|
* GeocoderRequest
|
|
|
|
* GeocoderResult
|
|
|
|
* GroundOverlayOptions
|
|
|
|
* ILatLng
|
|
|
|
* MarkerIcon
|
2017-07-07 19:13:04 -04:00
|
|
|
* MarkerOptions
|
2017-08-26 00:37:40 -07:00
|
|
|
* MarkerClusterIcon
|
|
|
|
* MarkerClusterOptions
|
2017-07-07 19:13:04 -04:00
|
|
|
* MyLocation
|
|
|
|
* MyLocationOptions
|
2017-07-10 09:59:35 -04:00
|
|
|
* PolygonOptions
|
|
|
|
* PolylineOptions
|
|
|
|
* TileOverlayOptions
|
2017-07-07 19:13:04 -04:00
|
|
|
* VisibleRegion
|
|
|
|
*/
|
|
|
|
@Plugin({
|
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
pluginRef: 'plugin.google.maps',
|
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
2017-09-27 12:56:30 -07:00
|
|
|
repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps',
|
2017-10-05 20:20:40 -07:00
|
|
|
install: 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"',
|
2017-07-07 19:13:04 -04:00
|
|
|
installVariables: ['API_KEY_FOR_ANDROID', 'API_KEY_FOR_IOS'],
|
|
|
|
platforms: ['Android', 'iOS']
|
|
|
|
})
|
|
|
|
@Injectable()
|
|
|
|
export class GoogleMaps extends IonicNativePlugin {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a new GoogleMap instance
|
|
|
|
* @param element {string | HTMLElement} Element ID or reference to attach the map to
|
|
|
|
* @param options {any} Options
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {GoogleMap}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
2017-07-08 08:43:11 -04:00
|
|
|
create(element: string | HTMLElement, options?: GoogleMapOptions): GoogleMap {
|
2017-09-27 12:56:30 -07:00
|
|
|
let googleMap: GoogleMap = new GoogleMap(element, options);
|
|
|
|
googleMap.set('_overlays', new BaseArrayClass());
|
|
|
|
return googleMap;
|
2017-07-20 17:06:37 -07:00
|
|
|
}
|
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
}
|
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
* https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/BaseClass/README.md
|
|
|
|
*/
|
|
|
|
@Plugin({
|
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
pluginRef: 'plugin.google.maps.BaseClass',
|
|
|
|
repo: ''
|
|
|
|
})
|
|
|
|
export class BaseClass {
|
|
|
|
protected _objectInstance: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds an event listener.
|
|
|
|
*
|
|
|
|
* @return {Observable<any>}
|
|
|
|
*/
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck({ observable: true })
|
2017-09-27 12:56:30 -07:00
|
|
|
addEventListener(eventName: string): Observable<any> {
|
|
|
|
return new Observable((observer) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.on(eventName, (...args: any[]) => {
|
|
|
|
if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
|
|
|
|
if (args[args.length - 1].type === 'Map') {
|
|
|
|
args[args.length - 1] = this;
|
2017-10-05 20:20:40 -07:00
|
|
|
} else if (this instanceof MarkerCluster) {
|
|
|
|
let overlay: Marker = this.get(args[args.length - 1].getId());
|
|
|
|
if (!overlay) {
|
|
|
|
let markerJS: any = args[args.length - 1];
|
|
|
|
let markerCluster: MarkerCluster = <MarkerCluster>this;
|
|
|
|
overlay = new Marker(markerCluster.getMap(), markerJS);
|
|
|
|
this.get('_overlays').push(markerJS.getId());
|
|
|
|
this.set(markerJS.getId(), overlay);
|
|
|
|
markerJS.one(markerJS.getId() + '_remove', () => {
|
|
|
|
let idx = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(markerJS.getId(), undefined);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
args[args.length - 1] = overlay;
|
2017-09-27 16:52:06 -04:00
|
|
|
} else {
|
|
|
|
args[args.length - 1] = this._objectInstance.getMap().get(args[args.length - 1].getId());
|
2017-09-27 12:56:30 -07:00
|
|
|
}
|
2017-09-27 16:52:06 -04:00
|
|
|
}
|
|
|
|
observer.next(args);
|
|
|
|
});
|
2017-09-27 12:56:30 -07:00
|
|
|
});
|
|
|
|
}
|
2017-08-26 00:37:40 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds an event listener that works once.
|
|
|
|
*
|
|
|
|
* @return {Promise<any>}
|
|
|
|
*/
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck()
|
2017-09-27 12:56:30 -07:00
|
|
|
addListenerOnce(eventName: string): Promise<any> {
|
|
|
|
return new Promise<any>((resolve) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.one(eventName, (...args: any[]) => {
|
|
|
|
if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
|
|
|
|
if (args[args.length - 1].type === 'Map') {
|
|
|
|
args[args.length - 1] = this;
|
2017-10-05 20:20:40 -07:00
|
|
|
} else if (this instanceof MarkerCluster) {
|
|
|
|
let overlay: Marker = this.get(args[args.length - 1].getId());
|
|
|
|
if (!overlay) {
|
|
|
|
let markerJS: any = args[args.length - 1];
|
|
|
|
let markerCluster: MarkerCluster = <MarkerCluster>this;
|
|
|
|
overlay = new Marker(markerCluster.getMap(), markerJS);
|
|
|
|
this.get('_overlays').push(markerJS.getId());
|
|
|
|
this.set(markerJS.getId(), overlay);
|
|
|
|
markerJS.one(markerJS.getId() + '_remove', () => {
|
|
|
|
let idx = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(markerJS.getId(), undefined);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
args[args.length - 1] = overlay;
|
2017-09-27 16:52:06 -04:00
|
|
|
} else {
|
|
|
|
args[args.length - 1] = this._objectInstance.getMap().get(args[args.length - 1].getId());
|
2017-09-27 12:56:30 -07:00
|
|
|
}
|
2017-09-27 16:52:06 -04:00
|
|
|
}
|
|
|
|
resolve(args);
|
2017-09-27 12:56:30 -07:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
2017-08-26 00:37:40 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a value
|
|
|
|
* @param key
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
get(key: string): any { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets a value
|
|
|
|
* @param key
|
|
|
|
* @param value
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
set(key: string, value: any, noNotify?: boolean): void { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bind a key to another object
|
|
|
|
* @param key {string}
|
|
|
|
* @param target {any}
|
|
|
|
* @param targetKey? {string}
|
|
|
|
* @param noNotify? {boolean}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
bindTo(key: string, target: any, targetKey?: string, noNotify?: boolean): void { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Listen to a map event.
|
|
|
|
*
|
|
|
|
* @return {Observable<any>}
|
|
|
|
*/
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck({ observable: true })
|
2017-09-27 12:56:30 -07:00
|
|
|
on(eventName: string): Observable<any> {
|
2017-09-27 16:52:06 -04:00
|
|
|
return new Observable((observer) => {
|
|
|
|
this._objectInstance.on(eventName, (...args: any[]) => {
|
|
|
|
if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
|
|
|
|
if (args[args.length - 1].type === 'Map') {
|
|
|
|
args[args.length - 1] = this;
|
2017-10-05 20:20:40 -07:00
|
|
|
} else if (this instanceof MarkerCluster) {
|
|
|
|
let overlay: Marker = this.get(args[args.length - 1].getId());
|
|
|
|
if (!overlay) {
|
|
|
|
let markerJS: any = args[args.length - 1];
|
|
|
|
let markerCluster: MarkerCluster = <MarkerCluster>this;
|
|
|
|
overlay = new Marker(markerCluster.getMap(), markerJS);
|
|
|
|
this.get('_overlays').push(markerJS.getId());
|
|
|
|
this.set(markerJS.getId(), overlay);
|
|
|
|
markerJS.one(markerJS.getId() + '_remove', () => {
|
|
|
|
let idx = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(markerJS.getId(), undefined);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
args[args.length - 1] = overlay;
|
2017-09-27 16:52:06 -04:00
|
|
|
} else {
|
|
|
|
args[args.length - 1] = this._objectInstance.getMap().get(args[args.length - 1].getId());
|
2017-09-27 12:56:30 -07:00
|
|
|
}
|
2017-09-27 16:52:06 -04:00
|
|
|
}
|
|
|
|
observer.next(args);
|
|
|
|
});
|
|
|
|
});
|
2017-09-27 12:56:30 -07:00
|
|
|
}
|
2017-08-26 00:37:40 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Listen to a map event only once.
|
|
|
|
*
|
|
|
|
* @return {Promise<any>}
|
|
|
|
*/
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck()
|
2017-09-27 12:56:30 -07:00
|
|
|
one(eventName: string): Promise<any> {
|
|
|
|
return new Promise<any>((resolve) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.one(eventName, (...args: any[]) => {
|
|
|
|
if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) {
|
|
|
|
if (args[args.length - 1].type === 'Map') {
|
|
|
|
args[args.length - 1] = this;
|
2017-10-05 20:20:40 -07:00
|
|
|
} else if (this instanceof MarkerCluster) {
|
|
|
|
let overlay: Marker = this.get(args[args.length - 1].getId());
|
|
|
|
if (!overlay) {
|
|
|
|
let markerJS: any = args[args.length - 1];
|
|
|
|
let markerCluster: MarkerCluster = <MarkerCluster>this;
|
|
|
|
overlay = new Marker(markerCluster.getMap(), markerJS);
|
|
|
|
this.get('_overlays').push(markerJS.getId());
|
|
|
|
this.set(markerJS.getId(), overlay);
|
|
|
|
markerJS.one(markerJS.getId() + '_remove', () => {
|
|
|
|
let idx = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(markerJS.getId(), undefined);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
args[args.length - 1] = overlay;
|
2017-09-27 16:52:06 -04:00
|
|
|
} else {
|
|
|
|
args[args.length - 1] = this._objectInstance.getMap().get(args[args.length - 1].getId());
|
2017-09-27 12:56:30 -07:00
|
|
|
}
|
2017-09-27 16:52:06 -04:00
|
|
|
}
|
|
|
|
resolve(args);
|
2017-09-27 12:56:30 -07:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
2017-08-26 00:37:40 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears all stored values
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
empty(): void { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dispatch event.
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
trigger(eventName: string, ...parameters: any[]): void {}
|
2017-09-27 12:56:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Executes off() and empty()
|
|
|
|
*/
|
|
|
|
@CordovaCheck({ sync: true })
|
|
|
|
destroy(): void {
|
|
|
|
let map: GoogleMap = this._objectInstance.getMap();
|
|
|
|
if (map) {
|
|
|
|
map.get('_overlays').set(this._objectInstance.getId(), undefined);
|
|
|
|
}
|
|
|
|
this._objectInstance.remove();
|
|
|
|
}
|
2017-08-26 00:37:40 -07:00
|
|
|
}
|
|
|
|
|
2016-03-29 06:50:03 -04:00
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2017-07-20 17:06:37 -07:00
|
|
|
* https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/BaseArrayClass/README.md
|
2016-03-29 06:50:03 -04:00
|
|
|
*/
|
2016-10-27 07:23:13 -04:00
|
|
|
@Plugin({
|
2017-07-07 19:13:04 -04:00
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
pluginName: 'GoogleMaps',
|
2017-07-07 19:13:04 -04:00
|
|
|
pluginRef: 'plugin.google.maps.BaseArrayClass',
|
|
|
|
repo: ''
|
2016-10-27 07:23:13 -04:00
|
|
|
})
|
2017-08-26 00:37:40 -07:00
|
|
|
export class BaseArrayClass<T> extends BaseClass {
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
constructor(initialData?: T[] | any) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
2017-08-26 00:37:40 -07:00
|
|
|
if (initialData instanceof GoogleMaps.getPlugin().BaseArrayClass) {
|
|
|
|
this._objectInstance = initialData;
|
|
|
|
} else {
|
2017-08-29 15:58:44 -07:00
|
|
|
this._objectInstance = new (GoogleMaps.getPlugin().BaseArrayClass)(initialData);
|
2016-10-08 21:29:53 -03:00
|
|
|
}
|
2016-06-23 12:31:57 +02:00
|
|
|
}
|
2016-08-11 14:52:30 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Removes all elements from the array.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param noNotify? {boolean} Set true to prevent remove_at events.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
empty(noNotify?: boolean): void {}
|
2017-07-07 19:13:04 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Iterate over each element, calling the provided callback.
|
|
|
|
* @param fn {Function}
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param callback? {Function}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
forEach(fn: ((element: T, index?: number) => void) | ((element: T, callback: () => void) => void), callback?: () => void): void {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Iterate over each element, calling the provided callback.
|
|
|
|
* Then you can get the results of each callback.
|
|
|
|
* @param fn {Function}
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param callback? {Function}
|
2017-07-07 19:13:04 -04:00
|
|
|
* @return {Array<Object>} returns a new array with the results
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
map(fn: Function, callback?: ((element: T, index: number) => T) | ((element: T, callback: (newElement: T) => void) => void)): T[] { return; }
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* The filter() method creates a new array with all elements that pass the test implemented by the provided function.
|
|
|
|
* @param fn {Function}
|
|
|
|
* @param callback? {Function}
|
|
|
|
* @return {Array<Object>} returns a new array with the results
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
filter(fn: Function, callback?: ((element: T, index: number) => T) | ((element: T, callback: (newElement: T) => void) => void)): T[] { return; }
|
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Returns a reference to the underlying Array.
|
|
|
|
* @return {Array<Object>}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getArray(): T[] { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the element at the specified index.
|
|
|
|
* @param index {number}
|
|
|
|
* @return {Object}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getAt(index: number): any {}
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Returns the number of the elements.
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getLength(): number { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present.
|
|
|
|
* @param element {Object}
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
indexOf(element: T): number { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The reverse() method reverses an array in place.
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
reverse(): void {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The sort() method sorts the elements of an array in place and returns the array.
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
sort(): void {}
|
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Inserts an element at the specified index.
|
|
|
|
* @param index {number}
|
|
|
|
* @param element {Object}
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param noNotify? {boolean} Set true to prevent insert_at events.
|
2017-07-07 19:13:04 -04:00
|
|
|
* @return {Object}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
insertAt(index: number, element: T, noNotify?: boolean) {}
|
2017-07-07 19:13:04 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes the last element of the array and returns that element.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param noNotify? {boolean} Set true to prevent remove_at events.
|
2017-07-07 19:13:04 -04:00
|
|
|
* @return {Object}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
pop(noNotify?: boolean): T { return; }
|
2017-07-07 19:13:04 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds one element to the end of the array and returns the new length of the array.
|
|
|
|
* @param element {object}
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param noNotify? {boolean} Set true to prevent insert_at events.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
push(element: T, noNotify?: boolean): void {}
|
2017-07-07 19:13:04 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes an element from the specified index.
|
|
|
|
* @param index {number}
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param noNotify? {boolean} Set true to prevent insert_at events.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
removeAt(index: number, noNotify?: boolean): void {}
|
2017-07-07 19:13:04 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets an element at the specified index.
|
|
|
|
* @param index {number}
|
|
|
|
* @param element {object}
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param noNotify? {boolean} Set true to prevent set_at events.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
setAt(index: number, element: T, noNotify?: boolean): void {}
|
2017-07-07 19:13:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @hidden
|
2017-07-20 17:06:37 -07:00
|
|
|
* https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Circle/README.md
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
export class Circle extends BaseClass {
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
private _map: GoogleMap;
|
|
|
|
|
|
|
|
constructor(_map: GoogleMap, _objectInstance: any) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
2017-07-20 17:06:37 -07:00
|
|
|
this._map = _map;
|
2017-07-07 19:13:04 -04:00
|
|
|
this._objectInstance = _objectInstance;
|
|
|
|
}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-09-27 12:56:30 -07:00
|
|
|
/**
|
|
|
|
* Return the ID of instance.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getId(): string { return; }
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Return the map instance.
|
|
|
|
* @return {GoogleMap}
|
|
|
|
*/
|
|
|
|
getMap(): any { return this._map; }
|
|
|
|
|
2016-06-23 12:31:57 +02:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the center position.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param latLng {ILatLng}
|
2016-06-23 12:31:57 +02:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
setCenter(latLng: ILatLng): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current center position
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {ILatLng}
|
2016-11-29 16:40:50 -06:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
getCenter(): ILatLng { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current circle radius.
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getRadius(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the circle radius.
|
|
|
|
* @param radius {number}
|
2016-11-29 16:40:50 -06:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setRadius(radius: number): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the filling color (inner color).
|
|
|
|
* @param color {string}
|
2016-11-29 16:40:50 -06:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setFillColor(color: string): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current circle filling color (inner color).
|
|
|
|
* @return {string}
|
2016-11-29 16:40:50 -06:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getFillColor(): string { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the stroke width.
|
|
|
|
* @param strokeWidth {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setStrokeWidth(strokeWidth: number): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the current circle stroke width (unit: pixel).
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getStrokeWidth(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the stroke color (outter color).
|
|
|
|
* @param strokeColor {string}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setStrokeColor(strokeColor: string): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the current circle stroke color (outer color).
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getStrokeColor(): string { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change clickablity of the circle.
|
|
|
|
* @param clickable {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setClickable(clickable: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return true if the circle is clickable.
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getClickable(): boolean { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the circle zIndex order.
|
|
|
|
* @param zIndex {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setZIndex(zIndex: number): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current circle zIndex.
|
|
|
|
* @return {number}
|
2016-11-29 16:40:50 -06:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getZIndex(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Remove the circle.
|
2016-11-29 16:40:50 -06:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
remove(): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-11-29 16:40:50 -06:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the latLngBounds (rectangle) that contains the circle.
|
|
|
|
* @return {LatLngBounds}
|
2016-11-29 16:40:50 -06:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getBounds(): LatLngBounds { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Set circle visibility
|
|
|
|
* @param visible {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setVisible(visible: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Returns a boolean that indicates whether the circle is visible
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getVisible(): boolean { return; }
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* @hidden
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
*/
|
|
|
|
@Plugin({
|
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
2017-07-07 19:13:04 -04:00
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
pluginRef: 'plugin.google.maps.environment',
|
|
|
|
repo: ''
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
})
|
2017-09-27 12:56:30 -07:00
|
|
|
export class Environment {
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
|
|
|
|
/**
|
2017-09-27 12:56:30 -07:00
|
|
|
* Get the open source software license information for Google Maps SDK for iOS.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
getLicenseInfo(): Promise<any> {
|
2017-09-27 16:52:06 -04:00
|
|
|
return new Promise<any>((resolve) => {
|
|
|
|
GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => resolve(text));
|
2017-09-27 12:56:30 -07:00
|
|
|
});
|
|
|
|
}
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Specifies the background color of the app.
|
|
|
|
* @param color
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
setBackgroundColor(color: string): void {
|
|
|
|
GoogleMaps.getPlugin().environment.setBackgroundColor(color);
|
|
|
|
}
|
2016-05-25 03:31:27 -04:00
|
|
|
|
2016-05-25 03:12:11 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@Plugin({
|
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
pluginRef: 'plugin.google.maps.Geocoder',
|
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
|
|
|
repo: ''
|
|
|
|
})
|
|
|
|
export class Geocoder {
|
|
|
|
/**
|
|
|
|
* Converts position to address and vice versa
|
|
|
|
* @param {GeocoderRequest} request Request object with either an address or a position
|
2017-08-26 00:37:40 -07:00
|
|
|
* @return {Promise<GeocoderResult[] | BaseArrayClass<GeocoderResult>>}
|
|
|
|
*/
|
|
|
|
geocode(request: GeocoderRequest): Promise<GeocoderResult[] | BaseArrayClass<GeocoderResult>> {
|
|
|
|
|
|
|
|
if (request.address instanceof Array || Array.isArray(request.address) ||
|
2017-09-27 16:52:06 -04:00
|
|
|
request.position instanceof Array || Array.isArray(request.position)) {
|
2017-08-26 00:37:40 -07:00
|
|
|
// -------------------------
|
|
|
|
// Geocoder.geocode({
|
|
|
|
// address: [
|
|
|
|
// "Kyoto, Japan",
|
|
|
|
// "Tokyo, Japan"
|
|
|
|
// ]
|
|
|
|
// })
|
|
|
|
// -------------------------
|
|
|
|
return new Promise<BaseArrayClass<GeocoderResult>>((resolve, reject) => {
|
|
|
|
GoogleMaps.getPlugin().Geocoder.geocode(request, (mvcArray: any) => {
|
|
|
|
if (mvcArray) {
|
|
|
|
resolve(new BaseArrayClass(mvcArray));
|
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
// -------------------------
|
|
|
|
// Geocoder.geocode({
|
|
|
|
// address: "Kyoto, Japan"
|
|
|
|
// })
|
|
|
|
// -------------------------
|
|
|
|
return new Promise<GeocoderResult[]>((resolve, reject) => {
|
|
|
|
GoogleMaps.getPlugin().Geocoder.geocode(request, (results: GeocoderResult[]) => {
|
|
|
|
if (results) {
|
|
|
|
resolve(results);
|
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
2016-05-25 03:12:11 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
@Plugin({
|
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
pluginRef: 'plugin.google.maps.geometry.encoding',
|
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
|
|
|
repo: ''
|
|
|
|
})
|
|
|
|
export class Encoding {
|
|
|
|
/**
|
|
|
|
* Decodes an encoded path string into a sequence of LatLngs.
|
|
|
|
* @param encoded {string} an encoded path string
|
|
|
|
* @param precision? {number} default: 5
|
|
|
|
* @return {LatLng}
|
|
|
|
*/
|
|
|
|
@Cordova({ sync: true })
|
|
|
|
decodePath(encoded: string, precision?: number): LatLng { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Encodes a sequence of LatLngs into an encoded path string.
|
|
|
|
* @param path {Array<ILatLng> | BaseArrayClass<ILatLng>} a sequence of LatLngs
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@Cordova({ sync: true })
|
|
|
|
encodePath(path: Array<ILatLng> | BaseArrayClass<ILatLng>): string { return; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
@Plugin({
|
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
pluginRef: 'plugin.google.maps.geometry.spherical',
|
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
|
|
|
repo: ''
|
|
|
|
})
|
|
|
|
export class Spherical {
|
|
|
|
/**
|
|
|
|
* Returns the distance, in meters, between two LatLngs.
|
|
|
|
* @param locationA {ILatLng}
|
|
|
|
* @param locationB {ILatLng}
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
computeDistanceBetween(from: ILatLng, to: ILatLng): number {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween(from, to);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the LatLng resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north)
|
|
|
|
* @param from {ILatLng}
|
|
|
|
* @param distance {number}
|
|
|
|
* @param heading {number}
|
|
|
|
* @return {LatLng}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
computeOffset(from: ILatLng, distance: number, heading: number): LatLng {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.computeOffset(from, distance, heading);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the location of origin when provided with a LatLng destination, meters travelled and original heading. Headings are expressed in degrees clockwise from North. This function returns null when no solution is available.
|
|
|
|
* @param to {ILatLng} The destination LatLng.
|
|
|
|
* @param distance {number} The distance travelled, in meters.
|
|
|
|
* @param heading {number} The heading in degrees clockwise from north.
|
|
|
|
* @return {LatLng}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin(to, distance, heading);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the length of the given path.
|
|
|
|
* @param path {Array<ILatLng> | BaseArrayClass<ILatLng>}
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
computeLength(path: Array<ILatLng> | BaseArrayClass<ILatLng>): number {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.computeLength(path);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the area of a closed path. The computed area uses the same units as the radius.
|
|
|
|
* @param path {Array<ILatLng> | BaseArrayClass<ILatLng>}.
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
computeArea(path: Array<ILatLng> | BaseArrayClass<ILatLng>): number {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.computeArea(path);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the signed area of a closed path. The signed area may be used to determine the orientation of the path.
|
|
|
|
* @param path {Array<ILatLng> | BaseArrayClass<ILatLng>}.
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
computeSignedArea(path: Array<ILatLng> | BaseArrayClass<ILatLng>): number {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.computeSignedArea(path);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the heading from one LatLng to another LatLng. Headings are expressed in degrees clockwise from North within the range (-180,180).
|
|
|
|
* @param from {ILatLng}
|
|
|
|
* @param to {ILatLng}
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
computeHeading(from: ILatLng, to: ILatLng): number {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.computeHeading(from, to);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the LatLng which lies the given fraction of the way between the origin LatLng and the destination LatLng.
|
|
|
|
* @param from {ILatLng} The LatLng from which to start.
|
|
|
|
* @param to {ILatLng} The LatLng toward which to travel.
|
|
|
|
* @param fraction {number} A fraction of the distance to travel from 0.0 to 1.0 .
|
|
|
|
* @return {LatLng}
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng {
|
|
|
|
return GoogleMaps.getPlugin().geometry.spherical.interpolate(from, to, fraction);
|
|
|
|
}
|
2017-07-20 17:06:37 -07:00
|
|
|
}
|
|
|
|
|
2016-06-09 16:48:40 -04:00
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@Plugin({
|
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
plugin: 'cordova-plugin-googlemaps'
|
|
|
|
})
|
|
|
|
export class GoogleMap extends BaseClass {
|
2017-07-08 08:43:11 -04:00
|
|
|
constructor(element: string | HTMLElement, options?: GoogleMapOptions) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
|
|
|
if (checkAvailability(GoogleMaps.getPluginRef(), null, GoogleMaps.getPluginName()) === true) {
|
|
|
|
if (typeof element === 'string') {
|
|
|
|
element = document.getElementById(<string>element);
|
|
|
|
}
|
|
|
|
this._objectInstance = GoogleMaps.getPlugin().Map.getMap(element, options);
|
|
|
|
}
|
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Changes the map div
|
|
|
|
* @param domNode
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-08-26 00:37:40 -07:00
|
|
|
setDiv(domNode?: HTMLElement): void { }
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Returns the map HTML element
|
|
|
|
* @return {HTMLElement}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getDiv(): HTMLElement { return; }
|
2016-08-09 02:37:16 -03:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Changes the map type id
|
|
|
|
* @param mapTypeId {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-08 08:45:09 -04:00
|
|
|
setMapTypeId(mapTypeId: MapType): void { }
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2016-12-04 12:57:46 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Moves the camera with animation
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
2017-08-26 00:37:40 -07:00
|
|
|
animateCamera(cameraPosition: CameraPosition<any>): Promise<any> { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Zooming in the camera with animation
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
2017-07-20 17:06:37 -07:00
|
|
|
animateCameraZoomIn(): Promise<any> { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Zooming out the camera with animation
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
2017-07-20 17:06:37 -07:00
|
|
|
animateCameraZoomOut(): Promise<any> { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Moves the camera without animation
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
2017-08-26 00:37:40 -07:00
|
|
|
moveCamera(cameraPosition: CameraPosition<any>): Promise<any> { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Zooming in the camera without animation
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
2017-07-20 17:06:37 -07:00
|
|
|
moveCameraZoomIn(): Promise<any> { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Zooming out the camera without animation
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
2017-07-20 17:06:37 -07:00
|
|
|
moveCameraZoomOut(): Promise<any> { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get the position of the camera.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {CameraPosition}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-20 17:06:37 -07:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-08-26 00:37:40 -07:00
|
|
|
getCameraPosition(): CameraPosition<ILatLng> { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get the current camera target position
|
|
|
|
* @return {Promise<CameraPosition>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-08-26 00:37:40 -07:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getCameraTarget(): ILatLng { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get the current camera zoom level
|
|
|
|
* @return {number}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getCameraZoom(): number { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get the current camera bearing
|
|
|
|
* @return {number}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getCameraBearing(): number { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get the current camera tilt (view angle)
|
|
|
|
* @return {number}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getCameraTilt(): number { return; }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set the center position of the camera view
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param latLng {ILatLng | Array<ILatLng>}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
setCameraTarget(latLng: ILatLng | Array<ILatLng>): void { }
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set zoom level of the camera
|
|
|
|
* @param zoomLevel {number} Zoom level
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setCameraZoom(zoomLevel: number): void {}
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set the camera view angle
|
|
|
|
* @param tiltLevel {number} Tilt level
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setCameraTilt(tiltLevel: number): void {}
|
2016-12-04 12:57:46 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set camera bearing
|
|
|
|
* @param bearing {any}
|
2016-12-04 12:57:46 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setCameraBearing(bearing: any): void {}
|
2016-05-25 03:52:00 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the center of the map by the given distance in pixels
|
|
|
|
* @param x {any}
|
|
|
|
* @param y {any}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
panBy(x: string | number, y: string | number): void { }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Get the current visible region (southWest and northEast)
|
|
|
|
* @return {VisibleRegion}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-20 17:06:37 -07:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getVisibleRegion(): VisibleRegion { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get the current device location
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<MyLocation>}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
|
|
|
getMyLocation(options?: MyLocationOptions): Promise<MyLocation> { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
2016-11-23 08:44:43 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set false to ignore all clicks on the map
|
|
|
|
* @param isClickable {boolean}
|
2016-11-23 08:44:43 -05:00
|
|
|
*/
|
2017-01-22 23:17:13 +01:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setClickable(isClickable: boolean): void {}
|
2016-11-23 08:44:43 -05:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Destroy a map completely
|
2017-09-27 12:56:30 -07:00
|
|
|
* @return {Promise<any>}
|
2016-11-23 08:44:43 -05:00
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
@CordovaInstance()
|
|
|
|
remove(): Promise<any> {
|
2017-09-27 16:52:06 -04:00
|
|
|
this.get('_overlays').forEach((overlayId: string) => this.set(overlayId, null));
|
|
|
|
this.get('_overlays').empty();
|
|
|
|
this.set('_overlays', undefined);
|
|
|
|
return new Promise<any>((resolve) => {
|
|
|
|
this._objectInstance.remove(() => resolve());
|
2017-09-27 12:56:30 -07:00
|
|
|
});
|
|
|
|
}
|
2016-11-23 08:44:43 -05:00
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Remove all overlays, such as marker
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck()
|
2017-09-27 12:56:30 -07:00
|
|
|
clear(): Promise<any> {
|
2017-09-27 16:52:06 -04:00
|
|
|
this.get('_overlays').forEach((overlayId: string) => this.set(overlayId, null));
|
|
|
|
this.get('_overlays').empty();
|
|
|
|
return new Promise<any>((resolve) => {
|
|
|
|
this._objectInstance.clear(() => resolve());
|
2017-09-27 12:56:30 -07:00
|
|
|
});
|
|
|
|
}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Convert the unit from LatLng to the pixels from the left/top of the map div
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
2017-08-26 00:37:40 -07:00
|
|
|
fromLatLngToPoint(latLng: ILatLng): Promise<any[]> { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Convert the unit from the pixels from the left/top to the LatLng
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<LatLng>}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
|
|
|
fromPointToLatLng(point: any): Promise<LatLng> { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set true if you want to show the MyLocation button
|
|
|
|
* @param enabled {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setMyLocationEnabled(enabled: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get the currently focused building
|
|
|
|
* @return {Promise<any>}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance()
|
2017-07-07 19:13:04 -04:00
|
|
|
getFocusedBuilding(): Promise<any> { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set true if you want to show the indoor map
|
|
|
|
* @param enabled {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setIndoorEnabled(enabled: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set true if you want to show the traffic layer
|
|
|
|
* @param enabled {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setTrafficEnabled(enabled: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set true if you want to show the compass button
|
|
|
|
* @param enabled {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setCompassEnabled(enabled: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Sets the preference for whether all gestures should be enabled or disabled
|
|
|
|
* @param enabled {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setAllGesturesEnabled(enabled: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Set visibility of the map
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param visible {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setVisible(visible: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Adjust the map padding (same as CSS padding rule)
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param top {number}
|
|
|
|
* @param right {number}
|
|
|
|
* @param left {number}
|
|
|
|
* @param bottom {number}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setPadding(top?: number, right?: number, bottom?: number, left?: number): void { }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set options
|
|
|
|
* @param options
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-08 08:43:11 -04:00
|
|
|
setOptions(options: GoogleMapOptions): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Adds a marker
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<Marker | any>}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@InstanceCheck()
|
|
|
|
addMarker(options: MarkerOptions): Promise<Marker | any> {
|
|
|
|
return new Promise<Marker>((resolve, reject) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.addMarker(options, (marker: any) => {
|
2017-07-07 19:13:04 -04:00
|
|
|
if (marker) {
|
2017-10-05 20:20:40 -07:00
|
|
|
let markerId: string = marker.getId();
|
2017-09-27 16:52:06 -04:00
|
|
|
const overlay: Marker = new Marker(this, marker);
|
2017-10-05 20:20:40 -07:00
|
|
|
this.get('_overlays').push(markerId);
|
|
|
|
this.set(markerId, overlay);
|
|
|
|
marker.one(markerId + '_remove', () => {
|
|
|
|
let idx: number = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(markerId, undefined);
|
|
|
|
});
|
2017-09-27 12:56:30 -07:00
|
|
|
resolve(overlay);
|
2017-07-07 19:13:04 -04:00
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
@InstanceCheck()
|
|
|
|
addMarkerCluster(options: MarkerClusterOptions): Promise<MarkerCluster | any> {
|
|
|
|
return new Promise<MarkerCluster>((resolve, reject) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.addMarkerCluster(options, (markerCluster: any) => {
|
2017-08-26 00:37:40 -07:00
|
|
|
if (markerCluster) {
|
2017-09-27 16:52:06 -04:00
|
|
|
const overlay = new MarkerCluster(this, markerCluster);
|
|
|
|
this.get('_overlays').push(markerCluster.getId());
|
|
|
|
this.set(markerCluster.getId(), overlay);
|
2017-10-05 20:20:40 -07:00
|
|
|
markerCluster.one('remove', () => {
|
|
|
|
let idx: number = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(markerCluster.getId(), undefined);
|
|
|
|
});
|
|
|
|
markerCluster.set('_overlays', new BaseArrayClass());
|
2017-09-27 12:56:30 -07:00
|
|
|
resolve(overlay);
|
2017-08-26 00:37:40 -07:00
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Adds a circle
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<Circle | any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@InstanceCheck()
|
|
|
|
addCircle(options: CircleOptions): Promise<Circle | any> {
|
|
|
|
return new Promise<Circle>((resolve, reject) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.addCircle(options, (circle: any) => {
|
2017-07-07 19:13:04 -04:00
|
|
|
if (circle) {
|
2017-10-05 20:20:40 -07:00
|
|
|
let circleId: string = circle.getId();
|
2017-09-27 16:52:06 -04:00
|
|
|
const overlay = new Circle(this, circle);
|
2017-10-05 20:20:40 -07:00
|
|
|
this.get('_overlays').push(circleId);
|
|
|
|
this.set(circleId, overlay);
|
|
|
|
circle.one(circleId + '_remove', () => {
|
|
|
|
let idx: number = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(circleId, undefined);
|
|
|
|
});
|
2017-09-27 12:56:30 -07:00
|
|
|
resolve(overlay);
|
2017-07-07 19:13:04 -04:00
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds a polygon
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<Polygon | any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@InstanceCheck()
|
|
|
|
addPolygon(options: PolygonOptions): Promise<Polygon | any> {
|
|
|
|
return new Promise<Polygon>((resolve, reject) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.addPolygon(options, (polygon: any) => {
|
2017-07-07 19:13:04 -04:00
|
|
|
if (polygon) {
|
2017-10-05 20:20:40 -07:00
|
|
|
let polygonId: string = polygon.getId();
|
2017-09-27 16:52:06 -04:00
|
|
|
const overlay = new Polygon(this, polygon);
|
2017-10-05 20:20:40 -07:00
|
|
|
this.get('_overlays').push(polygonId);
|
|
|
|
this.set(polygonId, overlay);
|
|
|
|
polygon.one(polygonId + '_remove', () => {
|
|
|
|
let idx: number = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(polygonId, undefined);
|
|
|
|
});
|
|
|
|
resolve(overlay);
|
2017-07-07 19:13:04 -04:00
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<Polyline | any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@InstanceCheck()
|
|
|
|
addPolyline(options: PolylineOptions): Promise<Polyline | any> {
|
|
|
|
return new Promise<Polyline>((resolve, reject) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.addPolyline(options, (polyline: any) => {
|
2017-07-07 19:13:04 -04:00
|
|
|
if (polyline) {
|
2017-10-05 20:20:40 -07:00
|
|
|
let polylineId: string = polyline.getId();
|
2017-09-27 16:52:06 -04:00
|
|
|
const overlay = new Polyline(this, polyline);
|
2017-10-05 20:20:40 -07:00
|
|
|
this.get('_overlays').push(polylineId);
|
|
|
|
this.set(polylineId, overlay);
|
|
|
|
polyline.one(polylineId + '_remove', () => {
|
|
|
|
let idx: number = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(polylineId, undefined);
|
|
|
|
});
|
2017-09-27 12:56:30 -07:00
|
|
|
resolve(overlay);
|
2017-07-07 19:13:04 -04:00
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<TileOverlay | any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@InstanceCheck()
|
|
|
|
addTileOverlay(options: TileOverlayOptions): Promise<TileOverlay | any> {
|
|
|
|
return new Promise<TileOverlay>((resolve, reject) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.addTileOverlay(options, (tileOverlay: any) => {
|
2017-07-07 19:13:04 -04:00
|
|
|
if (tileOverlay) {
|
2017-10-05 20:20:40 -07:00
|
|
|
let tileOverlayId: string = tileOverlay.getId();
|
2017-09-27 16:52:06 -04:00
|
|
|
const overlay = new TileOverlay(this, tileOverlay);
|
2017-10-05 20:20:40 -07:00
|
|
|
this.get('_overlays').push(tileOverlayId);
|
|
|
|
this.set(tileOverlayId, overlay);
|
|
|
|
tileOverlay.one(tileOverlayId + '_remove', () => {
|
|
|
|
let idx: number = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(tileOverlayId, undefined);
|
|
|
|
});
|
2017-09-27 12:56:30 -07:00
|
|
|
resolve(overlay);
|
2017-07-07 19:13:04 -04:00
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<GroundOverlay | any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@InstanceCheck()
|
|
|
|
addGroundOverlay(options: GroundOverlayOptions): Promise<GroundOverlay | any> {
|
|
|
|
return new Promise<GroundOverlay>((resolve, reject) => {
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.addGroundOverlay(options, (groundOverlay: any) => {
|
2017-07-07 19:13:04 -04:00
|
|
|
if (groundOverlay) {
|
2017-10-05 20:20:40 -07:00
|
|
|
let groundOverlayId: string = groundOverlay.getId();
|
2017-09-27 16:52:06 -04:00
|
|
|
const overlay = new GroundOverlay(this, groundOverlay);
|
2017-10-05 20:20:40 -07:00
|
|
|
this.get('_overlays').push(groundOverlayId);
|
|
|
|
this.set(groundOverlayId, overlay);
|
|
|
|
groundOverlay.one(groundOverlayId + '_remove', () => {
|
|
|
|
let idx: number = this.get('_overlays').indexOf(overlay);
|
|
|
|
this.get('_overlays').removeAt(idx);
|
|
|
|
this.set(groundOverlayId, undefined);
|
|
|
|
});
|
2017-09-27 12:56:30 -07:00
|
|
|
resolve(overlay);
|
2017-07-07 19:13:04 -04:00
|
|
|
} else {
|
|
|
|
reject();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Refreshes layout.
|
|
|
|
* You can execute it, but you don't need to do that. The plugin does this automatically.
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
refreshLayout(): void {}
|
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {Promise<any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance()
|
|
|
|
toDataURL(): Promise<any> { return; }
|
|
|
|
|
|
|
|
// /**
|
2017-07-20 17:06:37 -07:00
|
|
|
// * @return {Promise<KmlOverlay | any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
// */
|
|
|
|
// @InstanceCheck()
|
|
|
|
// addKmlOverlay(options: KmlOverlayOptions): Promise<KmlOverlay | any> {
|
|
|
|
// return new Promise<KmlOverlay>((resolve, reject) => {
|
|
|
|
// this._objectInstance.addKmlOverlay(options, (kmlOverlay: any) => {
|
|
|
|
// if (kmlOverlay) {
|
|
|
|
// resolve(new KmlOverlay(kmlOverlay));
|
|
|
|
// } else {
|
|
|
|
// reject();
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
export class GroundOverlay extends BaseClass {
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
private _map: GoogleMap;
|
|
|
|
|
|
|
|
constructor(_map: GoogleMap, _objectInstance: any) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
2017-07-20 17:06:37 -07:00
|
|
|
this._map = _map;
|
2017-07-07 19:13:04 -04:00
|
|
|
this._objectInstance = _objectInstance;
|
|
|
|
}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-09-27 12:56:30 -07:00
|
|
|
/**
|
|
|
|
* Return the ID of instance.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getId(): string { return; }
|
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Return the map instance.
|
|
|
|
* @return {GoogleMap}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2017-07-20 17:06:37 -07:00
|
|
|
getMap(): any { return this._map; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Change the bounds of the GroundOverlay
|
|
|
|
* @param bounds { ILatLng[]}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
setBounds(bounds: ILatLng[]): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the bearing of the ground overlay
|
|
|
|
* @param bearing {number}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setBearing(bearing: number): void { }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current bearing value
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getBearing(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the image of the ground overlay
|
|
|
|
* @param image {string} URL of image
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setImage(image: string): void {};
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Change the opacity of the ground overlay from 0.0 to 1.0
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param opacity {number}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setOpacity(opacity: number): void { }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current opacity
|
|
|
|
* @return {number}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getOpacity(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change clickablity of the ground overlay
|
|
|
|
* @param clickable {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setClickable(clickable: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return true if the ground overlay is clickable
|
|
|
|
* @return {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getClickable(): boolean { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change visibility of the ground overlay
|
|
|
|
* @param visible {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setVisible(visible: boolean): void { }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return true if the ground overlay is visible
|
|
|
|
* @return {boolean}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getVisible(): boolean { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the ground overlay zIndex order
|
|
|
|
* @param index {number}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setZIndex(index: number): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current ground overlay zIndex
|
|
|
|
* @return {number}
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getZIndex(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-12-04 12:54:25 -05:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Remove the ground overlay
|
2016-12-04 12:54:25 -05:00
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
@CordovaCheck()
|
|
|
|
remove(): void {
|
|
|
|
this._objectInstance.getMap().get('_overlays').set(this.getId(), undefined);
|
|
|
|
this._objectInstance.remove();
|
|
|
|
this.destroy();
|
|
|
|
}
|
2016-05-25 17:07:53 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-08-26 00:37:40 -07:00
|
|
|
@Plugin({
|
2017-09-27 16:52:06 -04:00
|
|
|
plugin: 'cordova-plugin-googlemaps',
|
|
|
|
pluginName: 'GoogleMaps',
|
|
|
|
pluginRef: 'plugin.google.maps.HtmlInfoWindow',
|
|
|
|
repo: ''
|
2017-08-26 00:37:40 -07:00
|
|
|
})
|
|
|
|
export class HtmlInfoWindow<T> extends IonicNativePlugin {
|
|
|
|
private _objectInstance: any;
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
|
2017-09-27 12:56:30 -07:00
|
|
|
constructor(initialData?: any) {
|
2017-09-27 16:52:06 -04:00
|
|
|
super();
|
|
|
|
if (checkAvailability(HtmlInfoWindow.getPluginRef(), null, HtmlInfoWindow.getPluginName()) === true) {
|
2017-09-27 12:56:30 -07:00
|
|
|
if (initialData instanceof GoogleMaps.getPlugin().HtmlInfoWindow) {
|
|
|
|
this._objectInstance = initialData;
|
|
|
|
} else {
|
|
|
|
this._objectInstance = new (HtmlInfoWindow.getPlugin())();
|
|
|
|
}
|
2017-09-27 16:52:06 -04:00
|
|
|
}
|
2017-01-22 23:17:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the backgroundColor
|
|
|
|
* @param color {string}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
|
|
|
setBackgroundColor(color: string): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set your HTML contents.
|
|
|
|
* @param content {any} String containing text or HTML element
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
|
|
|
setContent(content: string | Element): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Open the htmlInfoWindow
|
|
|
|
* @param marker {Marker}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
|
|
|
open(marker: any): any {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Close the htmlInfoWindow
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance()
|
|
|
|
close(): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2016-05-25 17:40:00 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
export class Marker extends BaseClass {
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
private _map: GoogleMap;
|
|
|
|
|
|
|
|
constructor(_map: GoogleMap, _objectInstance: any) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
2017-07-20 17:06:37 -07:00
|
|
|
this._map = _map;
|
2017-07-07 19:13:04 -04:00
|
|
|
this._objectInstance = _objectInstance;
|
|
|
|
}
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
/**
|
|
|
|
* Return the ID of instance.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-09-27 12:56:30 -07:00
|
|
|
getId(): string { return; }
|
2017-08-26 00:37:40 -07:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Return the map instance.
|
|
|
|
* @return {GoogleMap}
|
|
|
|
*/
|
|
|
|
getMap(): any { return this._map; }
|
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Set the marker position.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param latLng {ILatLng}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
setPosition(latLng: ILatLng): void { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the marker position.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @return {ILatLng}
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
2017-07-20 17:06:37 -07:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getPosition(): ILatLng { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Show the normal infoWindow of the marker.
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
showInfoWindow(): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Hide the normal infoWindow of the marker.
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
hideInfoWindow(): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Specify the animation either `DROP` or `BOUNCE`
|
|
|
|
* @param animation {string}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setAnimation(animation: string): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set true if you **do not want** to move the map when you click on the marker.
|
|
|
|
* @param disableAutoPan {boolean}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setDisableAutoPan(disableAutoPan: boolean): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set false if you want to hide the marker.
|
|
|
|
* @param visible
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-20 17:06:37 -07:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setVisible(visible: boolean): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return true if the marker is visible
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
isVisible(): boolean { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Change title of the normal infoWindow.
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param title {string}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setTitle(title: string): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the title strings.
|
|
|
|
* @return {string}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getTitle(): string { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Change snippet of the normal infoWindow.
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param snippet {string}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setSnippet(snippet: string): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the snippet strings.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getSnippet(): string { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Change the marker opacity from 0.0 to 1.0.
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param alpha {number} Opacity
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setOpacity(alpha: number): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the marker opacity.
|
|
|
|
* @return {number} Opacity
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getOpacity(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Remove the marker.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
@CordovaCheck()
|
|
|
|
remove(): void {
|
|
|
|
this._objectInstance.getMap().get('_overlays').set(this.getId(), undefined);
|
|
|
|
this._objectInstance.remove();
|
|
|
|
this.destroy();
|
|
|
|
}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the info window anchor. This defaults to 50% from the left of the image and at the bottom of the image.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param x {number} Distance from left of the icon image in pixels.
|
|
|
|
* @param y {number} Distance from top of the icon image in pixels.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setIconAnchor(x: number, y: number): void {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Change the info window anchor. This defaults to 50% from the left of the image and at the top of the image.
|
2017-07-20 17:06:37 -07:00
|
|
|
* @param x {number} Distance from left of the icon image in pixels.
|
|
|
|
* @param y {number} Distance from top of the icon image in pixels.
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setInfoWindowAnchor(x: number, y: number): void {}
|
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Return true if the infoWindow is shown on the marker
|
2017-07-07 19:13:04 -04:00
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
isInfoWindowShown(): boolean { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the marker hash code.
|
|
|
|
* @return {string} Marker hash code
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getHashCode(): string { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays.
|
|
|
|
* @param y {number} z-index
|
2017-07-07 19:13:04 -04:00
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
setZIndex(zIndex: number): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Get z-index
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getZIndex(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Set true if you allow all users to drag the marker.
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param draggable {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setDraggable(draggable: boolean): void { }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return true if the marker drag is enabled.
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
isDraggable(): boolean { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Set true if you want to be flat marker.
|
|
|
|
* @param flat {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setFlat(flat: boolean): void { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change icon url and/or size
|
|
|
|
* @param icon
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setIcon(icon: MarkerIcon): void { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Set the marker rotation angle.
|
|
|
|
* @param rotation {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setRotation(rotation: number): void { }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the marker rotation angle.
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getRotation(): number { return; }
|
|
|
|
|
2016-06-01 06:41:59 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
/**
|
|
|
|
* @hidden
|
|
|
|
*/
|
|
|
|
export class MarkerCluster extends BaseClass {
|
|
|
|
|
|
|
|
private _map: GoogleMap;
|
|
|
|
|
|
|
|
constructor(_map: GoogleMap, _objectInstance: any) {
|
|
|
|
super();
|
|
|
|
this._map = _map;
|
|
|
|
this._objectInstance = _objectInstance;
|
|
|
|
}
|
|
|
|
|
2017-09-27 12:56:30 -07:00
|
|
|
/**
|
|
|
|
* Return the ID of instance.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getId(): string { return; }
|
|
|
|
|
2017-08-26 00:37:40 -07:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
addMarker(marker: MarkerOptions): void {}
|
|
|
|
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
addMarkers(markers: MarkerOptions[]): void {}
|
|
|
|
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck()
|
2017-09-27 12:56:30 -07:00
|
|
|
remove(): void {
|
2017-10-05 20:20:40 -07:00
|
|
|
this._objectInstance.set('_overlays', undefined);
|
2017-09-27 16:52:06 -04:00
|
|
|
this._objectInstance.getMap().get('_overlays').set(this.getId(), undefined);
|
|
|
|
this._objectInstance.remove();
|
|
|
|
this.destroy();
|
2017-09-27 12:56:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the map instance.
|
|
|
|
* @return {GoogleMap}
|
|
|
|
*/
|
|
|
|
getMap(): any { return this._map; }
|
2017-08-26 00:37:40 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-06-09 16:48:40 -04:00
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
export class Polygon extends BaseClass {
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
private _map: GoogleMap;
|
|
|
|
|
|
|
|
constructor(_map: GoogleMap, _objectInstance: any) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
2017-07-20 17:06:37 -07:00
|
|
|
this._map = _map;
|
2017-07-07 19:13:04 -04:00
|
|
|
this._objectInstance = _objectInstance;
|
|
|
|
}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-09-27 12:56:30 -07:00
|
|
|
/**
|
|
|
|
* Return the ID of instance.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getId(): string { return; }
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Return the map instance.
|
|
|
|
* @return {GoogleMap}
|
|
|
|
*/
|
|
|
|
getMap(): any { return this._map; }
|
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the polygon points.
|
|
|
|
* @param points {ILatLng[]}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setPoints(points: ILatLng[]): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return an instance of the BaseArrayClass.
|
|
|
|
* You can modify the points.
|
|
|
|
* @return {BaseArrayClass<ILatLng>}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getPoints(): BaseArrayClass<ILatLng> { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the polygon holes.
|
|
|
|
* @param holes {ILatLng[][]}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setHoles(holes: ILatLng[][]): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return an instance of the BaseArrayClass.
|
|
|
|
* You can modify the holes.
|
|
|
|
* @return {BaseArrayClass<ILatLng[]>}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getHoles(): BaseArrayClass<ILatLng[]> { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the filling color (inner color)
|
|
|
|
* @param fillColor {string}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setFillColor(fillColor: string): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the current polygon filling color (inner color).
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getFillColor(): string { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-20 17:06:37 -07:00
|
|
|
* Change the stroke color (outer color)
|
2017-07-07 19:13:04 -04:00
|
|
|
* @param strokeColor {string}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setStrokeColor(strokeColor: string): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the current polygon stroke color (outer color)
|
|
|
|
* @return {string}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getStrokeColor(): string { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change clickablity of the polygon
|
|
|
|
* @param clickable {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setClickable(clickable: boolean): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return true if the polygon is clickable
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getClickable(): boolean { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Change visibility of the polygon
|
|
|
|
* @param visible {boolean}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setVisible(visible: boolean): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return true if the polygon is visible
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getVisible(): boolean { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the polygon zIndex order.
|
|
|
|
* @param zIndex {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setZIndex(zIndex: number): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the current polygon zIndex
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2016-09-25 16:55:17 -04:00
|
|
|
getZIndex(): number { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Remove the polygon.
|
|
|
|
*/
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck()
|
2017-09-27 12:56:30 -07:00
|
|
|
remove(): void {
|
|
|
|
this._objectInstance.getMap().get('_overlays').set(this.getId(), undefined);
|
|
|
|
this._objectInstance.remove();
|
|
|
|
this.destroy();
|
|
|
|
}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Change the polygon stroke width
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setStrokeWidth(strokeWidth: number): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Return the polygon stroke width
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getStrokeWidth(): number { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth.
|
|
|
|
* @param geodesic {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setGeodesic(geodesic: boolean): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
2017-09-27 12:56:30 -07:00
|
|
|
* Return true if the polygon is geodesic.
|
2017-07-07 19:13:04 -04:00
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getGeodesic(): boolean { return; }
|
2017-07-20 17:06:37 -07:00
|
|
|
|
2016-06-01 06:41:59 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
export class Polyline extends BaseClass {
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
private _map: GoogleMap;
|
|
|
|
|
|
|
|
constructor(_map: GoogleMap, _objectInstance: any) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
2017-07-20 17:06:37 -07:00
|
|
|
this._map = _map;
|
2017-07-07 19:13:04 -04:00
|
|
|
this._objectInstance = _objectInstance;
|
|
|
|
}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-09-27 12:56:30 -07:00
|
|
|
/**
|
|
|
|
* Return the ID of instance.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getId(): string { return; }
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Return the map instance.
|
|
|
|
* @return {GoogleMap}
|
|
|
|
*/
|
|
|
|
getMap(): any { return this._map; }
|
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change the polyline points.
|
|
|
|
* @param points {ILatLng[]}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setPoints(points: ILatLng[]): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return an instance of the BaseArrayClass
|
|
|
|
* You can modify the points.
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-20 17:06:37 -07:00
|
|
|
getPoints(): BaseArrayClass<ILatLng> { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* When true, edges of the polyline are interpreted as geodesic and will follow the curvature of the Earth.
|
|
|
|
* @param geoDesic {boolean}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setGeoDesic(geoDesic: boolean): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return true if the polyline is geodesic
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getGeodesic(): boolean { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change visibility of the polyline
|
|
|
|
* @param visible {boolean}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setVisible(visible: boolean): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return true if the polyline is visible
|
|
|
|
* @return {boolean}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getVisible(): boolean { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Change clickablity of the polyline
|
|
|
|
* @param clickable {boolean}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setClickable(clickable: boolean): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return true if the polyline is clickable
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getClickable(): boolean { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the polyline color
|
|
|
|
* @param strokeColor {string}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setStrokeColor(strokeColor: string): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the current polyline color
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getStrokeColor(): string { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the polyline stroke width
|
|
|
|
* @param strokeWidth {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setStrokeWidth(strokeWidth: number): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the current stroke width (unit: pixel).
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getStrokeWidth(): number { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Change the polyline zIndex order.
|
|
|
|
* @param index {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setZIndex(index: number): void {}
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return the current polyline zIndex
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getZIndex(): number { return; }
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Remove the polyline
|
|
|
|
*/
|
2017-09-27 16:52:06 -04:00
|
|
|
@InstanceCheck()
|
2017-09-27 12:56:30 -07:00
|
|
|
remove(): void {
|
|
|
|
this._objectInstance.getMap().get('_overlays').set(this.getId(), undefined);
|
|
|
|
this._objectInstance.remove();
|
|
|
|
this.destroy();
|
|
|
|
}
|
2016-06-01 06:41:59 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
|
|
|
/**
|
chore(): merge v3-injectable into master (#1203)
* feat(push): plugin is now instance based
no more callbacks
closes #250
* fix(push): fix typo in PushEvents enum
* fix constructor
* feat(push): add subscribe/unsubscribe
fixes #861
* First try
* Moving to modules
* Removed
* Moving things aroudn
* tsconfig for plugins
* Plugin tsconfigs
* Core kind of buidls
* Core
* Plugin tsconfig
* Test
* Remove core
* Build
* Individual packages
* Build and push
* Some stuff
* Bump
* Update core-package.json.template
* Update plugin-package.json.template
* 3.0.0
* Working on injectable
* Updates
* Checkpoint
* More stuff
* Remove duplicate injectables
* Remove lots of static stuff with a fancy regex
* Fix build errors
* chore(): nodejs build script
* chore(): move fs-extra-promise to devDeps
* feat(): make instance based plugins injectable
* Cleanup
* chore(build): convert dependencies to peer dependencies
* chore(build): add auto install scripts (#1059)
* feat(core): auto install scripts
* minor fixes
* minor fixes
* remove prompt message
* fix(plugins): rename packages/classes
* rename google maps
* gulp task to generate readme files
* readme templates
* automating readme file generation and adding it to CI
# Conflicts:
# src/@ionic-native/plugins/googlemap/index.ts
# src/@ionic-native/plugins/inappbrowser/index.ts
# src/@ionic-native/plugins/media/index.ts
# src/@ionic-native/plugins/sqlite/index.ts
* outputting readmes to dist dir instead of src
* updating package name in usage instructions
* chore(): ngc build
* fix build
* 3.0.1-0
* 3.1.0-alpha.1
* fix AoT support and add publish script
* 3.1.0-alpha.2
* edit publish command
* remove alpha tag
* remove auto-install and cleanup
* 3.1.0-alpha.3
* remove utils from publish command
* refactor(): remove some prefixes
* remove console logs
closes #1145
* chore(): merge master into v3-injectable (#1146)
* 2.5.0
* chore(): update changelog
* fix(pin-dialog): add missing errorIndex
* 2.5.1
* chore(): update changelog
* fix(zip): progress callback is optional (#1049)
* fix(apprate): add missing Windows Store option (#1072)
* Update file-chooser.ts (#1071)
Removed semicolon after .then() in usage instructions
* docs(device-motion): update interface names (#1076)
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
* feat(inappbrowser): add interface for IAB options (#1065)
* Add InAppBrowserOptions Interface for better tooling.
* feat(inappbrowser): add interface for IAB options
* Add more constructor tests.
* Add missing iOS options.
* docs(media): update method usage (#1089)
* fix(push): add the missing option clearBadge (#1087)
* docs(badge): fix example (#1096)
Error in code example (supplied parameters do not match call signature)
* fix(imagepicker): add outputType option (#1098)
* fix(facebook): fixes issue when not supplying default params (#1088)
* Fix default facebook logEvent parameters
* Implement correct parameters format in facebook logEvent method
* Update ibeacon.ts (#1099)
Return type of `getAuthorizationStatus()` made more explicit.
* fix(file): add missing exports (#1101)
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
* Add InAppBrowserOptions interface to documentation. (#1103)
* Update sqlite.ts (#1106)
Added a bracket to remove the syntax error
* update device orientation docs to reflect renaming of CompassHeading interface (#1107)
* Move marker code inside MAP_READY (#1108)
The code to set the camera position and marker should be moved inside the function handling MAP_READY. Otherwise they execute before the event is fired and it doesn't work.
* refactor(file): accept ArrayBuffer for data to write (#1109)
* docs(google-maps): fix param type
closes #1110
* fix(media): add missing pauseRecord and resumeRecord methods (#1122)
* docs(stripe): fix type and naming issues (#1129)
* refactor(paypal): fix type of items (#1125)
Type of items should be Array<PayPalItem> instead of string.
* fix(serial): Serial.requestPermission() options are optional (#1128)
* add success/error indices
* feat(browser-tab): add browser tab plugin (#1126)
* feature: added hasPermission function to Firebase fixes #1115
* feat: Implemented support for BrowserTab #1077
* docs(browser-tab): add proper docs
* fix(background-geolocation): configure returns a promise
closes #1118
* docs(background-geolocation): add return types and platforms
* fix(contacts): allow passing asterisk as contact field type
closes 1093
* fix(contacts): allow passing asterisk as contact field type
closes #1093
* fix(plugin): revert changes to support stable version (#1116)
fix #1001
* feat(file): add system paths
* feat(app-update): add cordova-plugin-app-update support (#1105)
* add new app-update plugin
* update plugin info
* docs(app-update): add docs
* feat(alipay): add alipay support. (#1097)
* add cordova-alipay-base plugin. to support Alipay payment
* change ALI_PID to APP_ID, make it same with the latest SDK
* rewrite comments
* docs(google-maps): improve docs (#1095)
Move `map.moveCamera(position);` inside the MAP_READY event.
Allow to zoom the map on first launch (both iOS and Android).
* fix(file): remove FileError from return type (#1086)
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
* feat(google-maps): add constant for map type
* fix(file): platform Browser will raise a an DOMException (#1082)
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
* feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon. By not including it in your interface you force users to use the default color for their version of Android. While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:
```
/**
* @return
* The notification background color for the small icon
* Returns null, if no color is given.
*/
public int getColor() {
String hex = options.optString("color", null);
if (hex == null) {
return NotificationCompat.COLOR_DEFAULT;
}
int aRGB = Integer.parseInt(hex, 16);
return aRGB + 0xFF000000;
}
```
I've simply added the option to the interface as well as a short description.
This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
* feat(unique-device-add): add UniqueDeviceId plugin (#1064)
* fix plugin
* feat(text-to-speech): Add stop method (#1063)
https://github.com/vilic/cordova-plugin-tts/pull/32
* feat(appodeal): adds Appodeal SDK wrappers for iOS and Android (#1031)
* feat(Appodeal) bootrapping
* starting docs
* more docs
* feat(appodeal): add event Observables
* feat(appodeal): replace Cordova Observable events with #.fromEvent()
* feat(appodeal): update decorator metadata
* feat(couchbase-lite): add CouchbaseLite cordova plugin (#1025)
* feat(CouchbaseLite): add CouchbaseLite cordova plugin
* add plugin url
* feat(background-fetch): Adding Background Fetch requested in #990 (#1013)
* Adding Background Fetch (https://github.com/transistorsoft/cordova-plugin-background-fetch) requested in #990
* Adding BackgroundFetch to index
* feat(gyroscope): add Gyroscope plugin (#1004)
* add gyroscope.ts to plugins
* add gyroscope to index
* Update gyroscope.ts
* Update gyroscope.ts
* Revert "fix(File): typing where `FileError` can be thrown" (#1130)
* tslint and fix build issues
* 2.6.0
* chore(): update changelog
* fix(core): dont check if method exists when overriding
fixes #1043
* fix(file): fix writeExistingFile
closes #1044
* feat(diagnostic): add new methods
closes #1045
* feat(background-mode): replace event listeners with on method
The methods onactivate, ondeactive and onfailure no longer exist. You must now use `on` method.
* feat(background-mode): add missing functions
closes #1078
* tslint
* set GoogleMapsMapTypeId to private
* remove beta from stripe
* 2.7.0
* chore(): update changelog
* feat(app-preferences): added cordova-plugin-app-preferences support (#1084)
* (feat) added cordova-plugin-app-preferences support
* replaced callback functions with promises
* updated example
* (feat) added cordova-plugin-browsertab support
* Revert "(feat) added cordova-plugin-browsertab support"
This reverts commit 00eb5cf5d8aaac9d798f9d8450e0f35f57ffb52a.
* (update) synchronize fetch
* feat(photo-library): added cordova-plugin-photo-library (#1102)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library
* CordovaFiniteObservable moved to photo-library.
Overloads are marked as private.
* fixed typescript error in 2.7.0
* feat(health): add wrapper for cordova-plugin-health (#1039)
* feat(health): add wrapper for cordova-plugin-health
* fix(Health): add optional params to QueryOptions for .query()
* docs(health): fix javadoc of interfaces
* fix(health): remove unused Plugin option
* docs(health): add missing documentation
* doc(health): add promise to return
* doc(health): remove empty lines
* doc(health): Add description & reference to repo
* doc(health: add "return {Promise<any>}"
* refactor(safari-view-controller): hide returns promise
* fix typo in ibeacon plugin (#1138)
* fix(file): fix return types
fixes #1139
* docs(background-geolocation): fix param docs
* refactor(health): fix return types and prefix interfaces
* 2.8.0
* chore(): update changelog
* docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved
The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect.
* Fixed a syntax error
* fix(background-geolocation): configure returns an observable
* docs(): update docs
* 3.1.0-rc.1
* refactor(background-geolocation): update imports
* docs(background-fetch): fix return type
* docs(health): fix return type
* chore(CI): fixing npm install instructions in generated readmes
* set concurrency to number of cores
* chore(): update deps
* 3.1.0-rc.2
* chore(): update angular to 2.4.8
* 3.1.0-rc.3
* chore(): update angular to 2.4.8
* chore(): update rxjs to 5.0.1
* chore(): organize and enhance decorators (#1171)
* fix/add decorators
* fix google maps design
* chore(): add root tsconfig to resolve imports in IDE
* updates
* more fixes
* chore(): add options to InstanceCheck
* chore(decorators): promise is default for Cordova/Instance check
* chore(): add check decroators
* docs(): update plugin docs
* chore(decorators): fix cordovaCheck and instanceCheck
* 3.1.0-rc.4
* chore(docs): remove gitPackage from doc generator
* chore(docs): update to latest dgeni version
* fix diagnostic
* feat(media): create method now returns a promise
Breaking change: create no longer returns a MediaObject instance. Make changes to your app accordingly.
* docs update + remove any static methods/properties
* remove duplicate method
* remove extra docs
* remove extra docs
* docs(): rename plugins
* chore(decorators): do not check method name on instancecheck
* chore(decorators): do not check method name on cordovacheck
* chore(plugin): fix pluginWarn
* chore(plugin): fix pluginWarn
* fix(decorators): fix InstanceCheck decorator
* 3.1.0-rc.5
* chore(docs): fix readme generation
* fix(transfer): fix v3 implementation
* refactor(paypal): PayPal is brand name
* chore(docs): replace all spaces with dashes
* chore(): add dashify filter
* chore(build): add aot path to core tsconfig
* feat(action-sheet): add ANDROID_THEMES constant
* refactor(): general cleanup (#1193)
* feat(screen-orientation): update wrapper to match v2 of the plugin
The whole implementation has changed now. You must update your code.
* feat(stripe): add new methods
* feat(linkedin): add LinkedIn plugin
* 3.1.0-rc.6
* style(screen-orientation): double quote to single
* tslint
* refactor(pedometer): rename file to index
2017-03-20 16:38:14 -04:00
|
|
|
* @hidden
|
2016-06-09 16:48:40 -04:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
export class TileOverlay extends BaseClass {
|
2016-06-01 06:41:59 -04:00
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
private _map: GoogleMap;
|
|
|
|
|
|
|
|
constructor(_map: GoogleMap, _objectInstance: any) {
|
2017-07-07 19:13:04 -04:00
|
|
|
super();
|
2017-07-20 17:06:37 -07:00
|
|
|
this._map = _map;
|
2017-07-07 19:13:04 -04:00
|
|
|
this._objectInstance = _objectInstance;
|
2017-01-22 23:17:13 +01:00
|
|
|
}
|
|
|
|
|
2017-09-27 12:56:30 -07:00
|
|
|
/**
|
|
|
|
* Return the ID of instance.
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getId(): string { return; }
|
|
|
|
|
2017-07-20 17:06:37 -07:00
|
|
|
/**
|
|
|
|
* Return the map instance.
|
|
|
|
* @return {GoogleMap}
|
|
|
|
*/
|
|
|
|
getMap(): any { return this._map; }
|
|
|
|
|
2017-01-22 23:17:13 +01:00
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set whether the tiles should fade in.
|
|
|
|
* @param fadeIn {boolean}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setFadeIn(fadeIn: boolean): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Get whether the tiles should fade in
|
|
|
|
* @return {boolean}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getFadeIn(): boolean { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set the zIndex of the tile overlay
|
|
|
|
* @param zIndex {number}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setZIndex(zIndex: number): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the zIndex of the tile overlay
|
|
|
|
* @return {number}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
getZIndex(): number { return; }
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Set the opacity of the tile overlay
|
|
|
|
* @param opacity {number}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
2017-07-07 19:13:04 -04:00
|
|
|
@CordovaInstance({ sync: true })
|
|
|
|
setOpacity(opacity: number): void {}
|
2017-01-22 23:17:13 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-07 19:13:04 -04:00
|
|
|
* Return the opacity of the tile overlay
|
|
|
|
* @return {number}
|
2017-01-22 23:17:13 +01:00
|
|
|
*/
|
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getOpacity(): number { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Set false if you want to hide
|
|
|
|
* @param visible {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
setVisible(visible: boolean): void {}
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Return true if the tile overlay is visible
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getVisible(): boolean { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Get tile size
|
|
|
|
*/
|
2016-06-23 12:31:57 +02:00
|
|
|
@CordovaInstance({ sync: true })
|
2017-07-07 19:13:04 -04:00
|
|
|
getTileSize(): any { return; }
|
2016-06-23 12:31:57 +02:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
/**
|
|
|
|
* Remove the tile overlay
|
|
|
|
*/
|
2017-09-27 12:56:30 -07:00
|
|
|
@CordovaCheck()
|
|
|
|
remove(): void {
|
|
|
|
this._objectInstance.getMap().get('_overlays').set(this.getId(), undefined);
|
|
|
|
this._objectInstance.remove();
|
|
|
|
this.destroy();
|
|
|
|
}
|
2016-06-01 06:41:59 -04:00
|
|
|
}
|
2016-06-09 16:48:40 -04:00
|
|
|
|
2017-07-07 19:13:04 -04:00
|
|
|
// /**
|
|
|
|
// * @hidden
|
|
|
|
// */
|
|
|
|
// export interface KmlOverlayOptions {
|
|
|
|
// url?: string;
|
|
|
|
// preserveViewport?: boolean;
|
|
|
|
// animation?: boolean;
|
|
|
|
// }
|
|
|
|
// /**
|
|
|
|
// * @hidden
|
|
|
|
// */
|
|
|
|
// export class KmlOverlay {
|
|
|
|
//
|
|
|
|
// constructor(private _objectInstance: any) { }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Adds an event listener.
|
|
|
|
// *
|
2017-07-20 17:06:37 -07:00
|
|
|
// * @return {Observable<any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
// */
|
|
|
|
// addEventListener(eventName: string): Observable<any> {
|
|
|
|
// return Observable.fromEvent(this._objectInstance, eventName);
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Adds an event listener that works once.
|
|
|
|
// *
|
2017-07-20 17:06:37 -07:00
|
|
|
// * @return {Promise<any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
// */
|
|
|
|
// addListenerOnce(eventName: string): Promise<any> {
|
|
|
|
// if (!this._objectInstance) {
|
|
|
|
// return Promise.reject({ error: 'plugin_not_installed' });
|
|
|
|
// }
|
|
|
|
// return new Promise<any>(
|
|
|
|
// resolve => this._objectInstance.addListenerOnce(eventName, resolve)
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Gets a value
|
|
|
|
// * @param key
|
|
|
|
// */
|
|
|
|
// @CordovaInstance({ sync: true })
|
|
|
|
// get(key: string): any { return; }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Sets a value
|
|
|
|
// * @param key
|
|
|
|
// * @param value
|
|
|
|
// */
|
|
|
|
// @CordovaInstance({ sync: true })
|
|
|
|
// set(key: string, value: any): void { }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Listen to a map event.
|
|
|
|
// *
|
2017-07-20 17:06:37 -07:00
|
|
|
// * @return {Observable<any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
// */
|
|
|
|
// on(eventName: string): Observable<any> {
|
|
|
|
// if (!this._objectInstance) {
|
|
|
|
// return new Observable((observer) => {
|
|
|
|
// observer.error({ error: 'plugin_not_installed' });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// return new Observable(
|
|
|
|
// (observer) => {
|
|
|
|
// this._objectInstance.on(eventName, observer.next.bind(observer));
|
|
|
|
// return () => this._objectInstance.off(event);
|
|
|
|
// }
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Listen to a map event only once.
|
|
|
|
// *
|
2017-07-20 17:06:37 -07:00
|
|
|
// * @return {Promise<any>}
|
2017-07-07 19:13:04 -04:00
|
|
|
// */
|
|
|
|
// one(eventName: string): Promise<any> {
|
|
|
|
// if (!this._objectInstance) {
|
|
|
|
// return Promise.reject({ error: 'plugin_not_installed' });
|
|
|
|
// }
|
|
|
|
// return new Promise<any>(
|
|
|
|
// resolve => this._objectInstance.one(eventName, resolve)
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Clears all stored values
|
|
|
|
// */
|
|
|
|
// @CordovaInstance({ sync: true })
|
|
|
|
// empty(): void { }
|
|
|
|
//
|
|
|
|
// @CordovaInstance({ sync: true })
|
|
|
|
// remove(): void { }
|
|
|
|
//
|
|
|
|
// @CordovaInstance({ sync: true })
|
|
|
|
// getOverlays(): Array<Polyline | Polygon | Marker> { return; }
|
|
|
|
// }
|