Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* @deprecated
* Adds an event listener that works once.
* @param eventName {string} event name you want to observe.
* @return {Promise}
*/
@InstanceCheck()
addListenerOnce(eventName: string): Promise {
console.warn('[GoogleMaps] "addListenerOnce" is deprecated. Please use "addEventListenerOnce".');
return this.addEventListenerOnce(eventName);
}
/**
* Gets a value
* @param key {any}
*/
@CordovaInstance({ sync: true })
get(key: string): any {
return;
}
/**
* Sets a value
* @param key {string} The key name for the value. `(key)_changed` will be fired when you set value through this method.
* @param value {any}
* @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event.
*/
@CordovaInstance({ sync: true })
set(key: string, value: any, noNotify?: boolean): void {
}
/**
* Bind a key to another object
}
/**
* Get the current camera tilt (view angle)
* @return {number}
*/
@CordovaInstance({ sync: true })
getCameraTilt(): number {
return;
}
/**
* Set the center position of the camera view
* @param latLng {ILatLng | ILatLng[]}
*/
@CordovaInstance({ sync: true })
setCameraTarget(latLng: ILatLng | ILatLng[]): void {
}
/**
* Set zoom level of the camera
* @param zoomLevel {number} Zoom level
*/
@CordovaInstance({ sync: true })
setCameraZoom(zoomLevel: number): void {
}
/**
* Set the camera view angle
* @param tiltAngle {number} Tilt angle
*/
@CordovaInstance({ sync: true })
return;
}
/**
* Clears all stored values
*/
@CordovaInstance({ sync: true })
empty(): void {
}
/**
* Dispatch event.
* @param eventName {string} Event name
* @param parameters {any} [options] The data you want to pass to event listerners.
*/
@CordovaInstance({ sync: true })
trigger(eventName: string, ...parameters: any[]): void {
}
/**
* Executes off() and empty()
*/
@CordovaInstance({ sync: true })
destroy(): void {
if (this._objectInstance.type === 'Map') {
const map: GoogleMap = this._objectInstance.getMap();
if (map) {
delete this._objectInstance.getMap().get('_overlays')[this._objectInstance.getId()];
}
}
this._objectInstance.remove();
sync: true
})
startNextTransaction(): void {}
/**
* @returns {Promise}
*/
@CordovaInstance()
open(): Promise {
return;
}
/**
* @returns {Promise}
*/
@CordovaInstance()
close(): Promise {
return;
}
/**
* Execute SQL on the opened database. Note, you must call `create` first, and
* ensure it resolved and successfully opened the database.
*/
@CordovaInstance()
executeSql(statement: string, params?: any[]): Promise {
return;
}
/**
* @param sqlStatements {string[] | string[][] | any[]}
* @returns {Promise}
return;
}
/**
* Changes the polyline zIndex order.
* @param index {number}
*/
@CordovaInstance({ sync: true })
setZIndex(index: number): void {
}
/**
* Returns the current polyline zIndex
* @return {number}
*/
@CordovaInstance({ sync: true })
getZIndex(): number {
return;
}
/**
* Remove the polyline
*/
@CordovaInstance()
remove(): void {
delete this._objectInstance.getMap().get('_overlays')[this.getId()];
this._objectInstance.remove();
this.destroy();
}
}
/**
}
/**
* 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 {
}
/**
* Inserts an element at the specified index.
* @param index {number}
* @param element {Object}
* @param noNotify? {boolean} [options] Set true to prevent insert_at event.
* @return {Object}
/**
* 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 {
}
/**
* Get the current amplitude of the current recording.
* @returns {Promise} Returns a promise with the amplitude of the current recording
*/
@CordovaInstance()
getCurrentAmplitude(): Promise {
return;
}
/**
* Get the current position within an audio file. Also updates the Media object's position parameter.
* @returns {Promise} Returns a promise with the position of the current recording
*/
@CordovaInstance()
getCurrentPosition(): Promise {
return;
}
/**
* Get the duration of an audio file in seconds. If the duration is unknown, it returns a value of -1.
* @returns {number} Returns a promise with the duration of the current recording
*/
@CordovaInstance({ sync: true })
getDuration(): number {
return;
}
/**
* Starts or resumes playing an audio file.
*/
/**
* Injects JavaScript code into the browser window.
* @param script Details of the script to run, specifying either a file or code key.
* @returns {Promise}
*/
@CordovaInstance()
executeScript(script: { file?: string; code?: string }): Promise {
return;
}
/**
* Injects CSS into the browser window.
* @param css Details of the script to run, specifying either a file or code key.
* @returns {Promise}
*/
@CordovaInstance()
insertCss(css: { file?: string; code?: string }): Promise {
return;
}
/**
* A method that allows you to listen to events happening in the browser.
* Available events are: `ThemeableBrowserError`, `ThemeableBrowserWarning`, `critical`, `loadfail`, `unexpected`, `undefined`
* @param event Event name
* @returns {Observable} Returns back an observable that will listen to the event on subscribe, and will stop listening to the event on unsubscribe.
*/
@InstanceCheck({ observable: true })
on(event: string): Observable {
return new Observable(observer => {
this._objectInstance.addEventListener(
event,
observer.next.bind(observer)
errorIndex: 1
})
transaction(fn: (tx: DbTransaction) => void): Promise {
return;
}
/**
* @param fn {Function}
* @returns {Promise}
*/
@CordovaInstance()
readTransaction(fn: (tx: SQLiteTransaction) => void): Promise {
return;
}
@CordovaInstance({
sync: true
})
startNextTransaction(): void {}
/**
* @returns {Promise}
*/
@CordovaInstance()
open(): Promise {
return;
}
/**
* @returns {Promise}
*/
@CordovaInstance()