style(): spacing and cleanup

This commit is contained in:
Ibby 2016-12-06 08:02:00 -05:00
parent fff1dc45e2
commit e26783b8c6
39 changed files with 228 additions and 92 deletions

View File

@ -1,7 +1,6 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
declare var window: any; declare var window: any;
/** /**
@ -137,16 +136,27 @@ export class ThreeDeeTouch {
} }
export interface ThreeDeeTouchQuickAction { export interface ThreeDeeTouchQuickAction {
type?: string; type?: string;
title: string; title: string;
subtitle?: string; subtitle?: string;
iconType?: string; iconType?: string;
iconTemplate?: string; iconTemplate?: string;
} }
export interface ThreeDeeTouchForceTouch { export interface ThreeDeeTouchForceTouch {
force: number; force: number;
timestamp: number; timestamp: number;
x: number; x: number;
y: number; y: number;
} }

View File

@ -1,6 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name Action Sheet * @name Action Sheet
* @description * @description
@ -54,36 +53,45 @@ export class ActionSheet {
} }
export interface ActionSheetOptions { export interface ActionSheetOptions {
/** /**
* The labels for the buttons. Uses the index x * The labels for the buttons. Uses the index x
*/ */
buttonLabels: string[]; buttonLabels: string[];
/** /**
* The title for the actionsheet * The title for the actionsheet
*/ */
title?: string; title?: string;
/** /**
* Theme to be used on Android * Theme to be used on Android
*/ */
androidTheme?: number; androidTheme?: number;
/** /**
* Enable a cancel on Android * Enable a cancel on Android
*/ */
androidEnableCancelButton?: boolean; androidEnableCancelButton?: boolean;
/** /**
* Enable a cancel on Windows Phone * Enable a cancel on Windows Phone
*/ */
winphoneEnableCancelButton?: boolean; winphoneEnableCancelButton?: boolean;
/** /**
* Add a cancel button with text * Add a cancel button with text
*/ */
addCancelButtonWithLabel?: string; addCancelButtonWithLabel?: string;
/** /**
* Add a destructive button with text * Add a destructive button with text
*/ */
addDestructiveButtonWithLabel?: string; addDestructiveButtonWithLabel?: string;
/** /**
* On an iPad, set the X,Y position * On an iPad, set the X,Y position
*/ */
position?: number[]; position?: number[];
} }

View File

@ -30,8 +30,6 @@ import { Observable } from 'rxjs/Observable';
}) })
export class AdMob { export class AdMob {
// Static Methods
/** /**
* *
* @param adIdOrOptions * @param adIdOrOptions
@ -129,8 +127,6 @@ export class AdMob {
@Cordova() @Cordova()
static getAdSettings(): Promise<any> { return; } static getAdSettings(): Promise<any> { return; }
// Events
@Cordova({ @Cordova({
eventObservable: true, eventObservable: true,
event: 'onBannerFailedToReceive' event: 'onBannerFailedToReceive'
@ -161,14 +157,12 @@ export class AdMob {
}) })
static onBannerDismiss(): Observable<any> { return; } static onBannerDismiss(): Observable<any> { return; }
@Cordova({ @Cordova({
eventObservable: true, eventObservable: true,
event: 'onInterstitialFailedToReceive' event: 'onInterstitialFailedToReceive'
}) })
static onInterstitialFailedToReceive(): Observable<any> { return; } static onInterstitialFailedToReceive(): Observable<any> { return; }
@Cordova({ @Cordova({
eventObservable: true, eventObservable: true,
event: 'onInterstitialReceive' event: 'onInterstitialReceive'
@ -182,14 +176,12 @@ export class AdMob {
}) })
static onInterstitialPresent(): Observable<any> { return; } static onInterstitialPresent(): Observable<any> { return; }
@Cordova({ @Cordova({
eventObservable: true, eventObservable: true,
event: 'onInterstitialLeaveApp' event: 'onInterstitialLeaveApp'
}) })
static onInterstitialLeaveApp(): Observable<any> { return; } static onInterstitialLeaveApp(): Observable<any> { return; }
@Cordova({ @Cordova({
eventObservable: true, eventObservable: true,
event: 'onInterstitialDismiss' event: 'onInterstitialDismiss'

View File

@ -36,6 +36,7 @@ import { Cordova, Plugin } from './plugin';
repo: 'https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth' repo: 'https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth'
}) })
export class AndroidFingerprintAuth { export class AndroidFingerprintAuth {
/** /**
* Opens a native dialog fragment to use the device hardware fingerprint scanner to authenticate against fingerprints registered for the device. * Opens a native dialog fragment to use the device hardware fingerprint scanner to authenticate against fingerprints registered for the device.
* @param params {any} * @param params {any}

View File

@ -26,6 +26,7 @@ import { Cordova, Plugin } from './plugin';
platforms: ['Android', 'iOS'] platforms: ['Android', 'iOS']
}) })
export class AppVersion { export class AppVersion {
/** /**
* Returns the name of the app * Returns the name of the app
* @returns {Promise<any>} * @returns {Promise<any>}

View File

@ -498,4 +498,5 @@ export class BackgroundGeolocation {
*/ */
@Cordova() @Cordova()
static getLogEntries(limit: number): Promise<any> { return; } static getLogEntries(limit: number): Promise<any> { return; }
} }

View File

@ -35,6 +35,7 @@ import { Observable } from 'rxjs/Observable';
platforms: ['Android', 'iOS', 'Windows Phone 8'] platforms: ['Android', 'iOS', 'Windows Phone 8']
}) })
export class BackgroundMode { export class BackgroundMode {
/** /**
* Enable the background mode. * Enable the background mode.
* Once called, prevents the app from being paused while in background. * Once called, prevents the app from being paused while in background.
@ -112,6 +113,7 @@ export class BackgroundMode {
* Configurations items that can be updated. * Configurations items that can be updated.
*/ */
export interface Configure { export interface Configure {
/** /**
*Title of the background task *Title of the background task
*/ */

View File

@ -37,6 +37,7 @@ export class BarcodeScanner {
PHONE_TYPE: 'PHONE_TYPE', PHONE_TYPE: 'PHONE_TYPE',
SMS_TYPE: 'SMS_TYPE' SMS_TYPE: 'SMS_TYPE'
}; };
/** /**
* Open the barcode scanner. * Open the barcode scanner.
* @param options {Object} Optional options to pass to the scanner * @param options {Object} Optional options to pass to the scanner

View File

@ -1,4 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name Base64 To Gallery * @name Base64 To Gallery
* @description This plugin allows you to save base64 data as a png image into the device * @description This plugin allows you to save base64 data as a png image into the device

View File

@ -64,6 +64,7 @@ export class BatteryStatus {
} }
export interface StatusObject { export interface StatusObject {
/** /**
* The battery charge percentage * The battery charge percentage
*/ */
@ -73,4 +74,5 @@ export interface StatusObject {
* A boolean that indicates whether the device is plugged in * A boolean that indicates whether the device is plugged in
*/ */
isPlugged: boolean; isPlugged: boolean;
} }

View File

@ -167,6 +167,7 @@ import { Observable } from 'rxjs/Observable';
platforms: ['iOS', 'Android'] platforms: ['iOS', 'Android']
}) })
export class BLE { export class BLE {
/** /**
* Scan and discover BLE peripherals for the specified amount of time. * Scan and discover BLE peripherals for the specified amount of time.
* *
@ -421,4 +422,5 @@ export class BLE {
*/ */
@Cordova() @Cordova()
static enable(): Promise<any> { return; } static enable(): Promise<any> { return; }
} }

View File

@ -1,19 +1,28 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @private * @private
*/ */
export interface CalendarOptions { export interface CalendarOptions {
id?: string; id?: string;
firstReminderMinutes?: number; firstReminderMinutes?: number;
secondReminderMinutes?: number; secondReminderMinutes?: number;
recurrence?: string; // options are: 'daily', 'weekly', 'monthly', 'yearly' recurrence?: string; // options are: 'daily', 'weekly', 'monthly', 'yearly'
recurrenceInterval?: number; // only used when recurrence is set recurrenceInterval?: number; // only used when recurrence is set
recurrenceEndDate?: Date; recurrenceEndDate?: Date;
calendarName?: string; calendarName?: string;
calendarId?: number; calendarId?: number;
url?: string; url?: string;
} }
/** /**

View File

@ -23,6 +23,7 @@ import { Plugin, Cordova } from './plugin';
platforms: ['iOS', 'Android'] platforms: ['iOS', 'Android']
}) })
export class CallNumber { export class CallNumber {
/** /**
* Calls a phone number * Calls a phone number
* @param numberToCall {string} The phone number to call as a string * @param numberToCall {string} The phone number to call as a string
@ -35,4 +36,5 @@ export class CallNumber {
static callNumber(numberToCall: string, bypassAppChooser: boolean): Promise<any> { static callNumber(numberToCall: string, bypassAppChooser: boolean): Promise<any> {
return; return;
} }
} }

View File

@ -1,17 +1,24 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
export interface CameraPreviewRect { export interface CameraPreviewRect {
x: number; x: number;
y: number; y: number;
width: number; width: number;
height: number; height: number;
} }
export interface CameraPreviewSize { export interface CameraPreviewSize {
maxWidth: number; maxWidth: number;
maxHeight: number; maxHeight: number;
} }
/** /**
@ -157,4 +164,5 @@ export class CameraPreview {
sync: true sync: true
}) })
static setColorEffect(effect: string): void { } static setColorEffect(effect: string): void { }
} }

View File

@ -117,6 +117,7 @@ export interface CameraPopoverOptions {
platforms: ['Android', 'BlackBerry', 'Browser', 'Firefox', 'FireOS', 'iOS', 'Windows', 'Windows Phone 8', 'Ubuntu'] platforms: ['Android', 'BlackBerry', 'Browser', 'Firefox', 'FireOS', 'iOS', 'Windows', 'Windows Phone 8', 'Ubuntu']
}) })
export class Camera { export class Camera {
/** /**
* @private * @private
* @enum {number} * @enum {number}

View File

@ -1,6 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name CardIO * @name CardIO
* @description * @description
@ -32,6 +31,7 @@ import { Cordova, Plugin } from './plugin';
platforms: ['iOS', 'Android'] platforms: ['iOS', 'Android']
}) })
export class CardIO { export class CardIO {
/** /**
* Check whether card scanning is currently available. (May vary by * Check whether card scanning is currently available. (May vary by
* device, OS version, network connectivity, etc.) * device, OS version, network connectivity, etc.)
@ -59,31 +59,57 @@ export class CardIO {
} }
export interface CardIOOptions { export interface CardIOOptions {
requireExpiry?: boolean; requireExpiry?: boolean;
requireCVV?: boolean; requireCVV?: boolean;
requirePostalCode?: boolean; requirePostalCode?: boolean;
supressManual?: boolean; supressManual?: boolean;
restrictPostalCodeToNumericOnly?: boolean; restrictPostalCodeToNumericOnly?: boolean;
keepApplicationTheme?: boolean; keepApplicationTheme?: boolean;
requireCardholderName?: boolean; requireCardholderName?: boolean;
scanInstructions?: string; scanInstructions?: string;
noCamera?: boolean; noCamera?: boolean;
scanExpiry?: boolean; scanExpiry?: boolean;
languageOrLocale?: string; languageOrLocale?: string;
guideColor?: string; guideColor?: string;
supressConfirmation?: boolean; supressConfirmation?: boolean;
hideCardIOLogo?: boolean; hideCardIOLogo?: boolean;
useCardIOLogo?: boolean; useCardIOLogo?: boolean;
supressScan?: boolean; supressScan?: boolean;
} }
export interface CardIOResponse { export interface CardIOResponse {
cardType: string; cardType: string;
redactedCardNumber: string; redactedCardNumber: string;
cardNumber: string; cardNumber: string;
expiryMonth: number; expiryMonth: number;
expiryYear: number; expiryYear: number;
cvv: string; cvv: string;
postalCode: string; postalCode: string;
cardholderName: string; cardholderName: string;
} }

View File

@ -1,6 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name Clipboard * @name Clipboard
* @description * @description

View File

@ -1,10 +1,6 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
// below are taken from
// https://raw.githubusercontent.com/Microsoft/cordova-plugin-code-push/master/typings/codePush.d.ts
// and adjusted to remove warnings and access control
namespace Http { namespace Http {
export const enum Verb { export const enum Verb {
GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH

View File

@ -9,32 +9,46 @@ export type ContactFieldType = 'addresses' | 'birthday' | 'categories' | 'countr
* @private * @private
*/ */
export interface IContactProperties { export interface IContactProperties {
/** A globally unique identifier. */ /** A globally unique identifier. */
id?: string; id?: string;
/** The name of this Contact, suitable for display to end users. */ /** The name of this Contact, suitable for display to end users. */
displayName?: string; displayName?: string;
/** An object containing all components of a persons name. */ /** An object containing all components of a persons name. */
name?: IContactName; name?: IContactName;
/** A casual name by which to address the contact. */ /** A casual name by which to address the contact. */
nickname?: string; nickname?: string;
/** An array of all the contact's phone numbers. */ /** An array of all the contact's phone numbers. */
phoneNumbers?: IContactField[]; phoneNumbers?: IContactField[];
/** An array of all the contact's email addresses. */ /** An array of all the contact's email addresses. */
emails?: IContactField[]; emails?: IContactField[];
/** An array of all the contact's addresses. */ /** An array of all the contact's addresses. */
addresses?: IContactAddress[]; addresses?: IContactAddress[];
/** An array of all the contact's IM addresses. */ /** An array of all the contact's IM addresses. */
ims?: IContactField[]; ims?: IContactField[];
/** An array of all the contact's organizations. */ /** An array of all the contact's organizations. */
organizations?: IContactOrganization[]; organizations?: IContactOrganization[];
/** The birthday of the contact. */ /** The birthday of the contact. */
birthday?: Date; birthday?: Date;
/** A note about the contact. */ /** A note about the contact. */
note?: string; note?: string;
/** An array of the contact's photos. */ /** An array of the contact's photos. */
photos?: IContactField[]; photos?: IContactField[];
/** An array of all the user-defined categories associated with the contact. */ /** An array of all the user-defined categories associated with the contact. */
categories?: IContactField[]; categories?: IContactField[];
/** An array of web pages associated with the contact. */ /** An array of web pages associated with the contact. */
urls?: IContactField[]; urls?: IContactField[];
} }
@ -274,6 +288,7 @@ export class ContactFindOptions implements IContactFindOptions {
repo: 'https://github.com/apache/cordova-plugin-contacts' repo: 'https://github.com/apache/cordova-plugin-contacts'
}) })
export class Contacts { export class Contacts {
/** /**
* Create a single contact. * Create a single contact.
* @returns {Contact} Returns a Contact object * @returns {Contact} Returns a Contact object

View File

@ -1,4 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name Crop * @name Crop
* @description Crops images * @description Crops images
@ -22,6 +23,7 @@ import { Cordova, Plugin } from './plugin';
repo: 'https://github.com/jeduan/cordova-plugin-crop' repo: 'https://github.com/jeduan/cordova-plugin-crop'
}) })
export class Crop { export class Crop {
/** /**
* Crops an image * Crops an image
* @param pathToImage * @param pathToImage
@ -32,4 +34,5 @@ export class Crop {
callbackOrder: 'reverse' callbackOrder: 'reverse'
}) })
static crop(pathToImage: string, options?: {quality: number}): Promise<string> { return; } static crop(pathToImage: string, options?: {quality: number}): Promise<string> { return; }
} }

View File

@ -1,6 +1,5 @@
import {Cordova, Plugin} from './plugin'; import {Cordova, Plugin} from './plugin';
export interface DatePickerOptions { export interface DatePickerOptions {
/** /**
* The mode of the date picker * The mode of the date picker
@ -35,71 +34,88 @@ export interface DatePickerOptions {
* Label of BUTTON_POSITIVE (done button) on Android * Label of BUTTON_POSITIVE (done button) on Android
*/ */
okText?: string; okText?: string;
/** /**
* Label of BUTTON_NEGATIVE (cancel button). If empty, uses android.R.string.cancel. * Label of BUTTON_NEGATIVE (cancel button). If empty, uses android.R.string.cancel.
*/ */
cancelText?: string; cancelText?: string;
/** /**
* Label of today button. If empty, doesn't show the option to select current date. * Label of today button. If empty, doesn't show the option to select current date.
*/ */
todayText?: string; todayText?: string;
/** /**
* Label of now button. If empty, doesn't show the option to select current time. * Label of now button. If empty, doesn't show the option to select current time.
*/ */
nowText?: string; nowText?: string;
/** /**
* Shows time dialog in 24 hours format. * Shows time dialog in 24 hours format.
*/ */
is24Hour?: boolean; is24Hour?: boolean;
/** /**
* Choose the Android theme for the picker. You can use the DatePicker.ANDROID_THEMES property. * Choose the Android theme for the picker. You can use the DatePicker.ANDROID_THEMES property.
* Values: 1: THEME_TRADITIONAL | 2: THEME_HOLO_DARK | 3: THEME_HOLO_LIGHT | 4: THEME_DEVICE_DEFAULT_DARK | 5: THEME_DEVICE_DEFAULT_LIGHT * Values: 1: THEME_TRADITIONAL | 2: THEME_HOLO_DARK | 3: THEME_HOLO_LIGHT | 4: THEME_DEVICE_DEFAULT_DARK | 5: THEME_DEVICE_DEFAULT_LIGHT
*/ */
androidTheme?: number; androidTheme?: number;
/** /**
* Shows or hide dates earlier then selected date. * Shows or hide dates earlier then selected date.
*/ */
allowOldDates?: boolean; allowOldDates?: boolean;
/** /**
* Shows or hide dates after selected date. * Shows or hide dates after selected date.
*/ */
allowFutureDates?: boolean; allowFutureDates?: boolean;
/** /**
* Label of done button. * Label of done button.
*/ */
doneButtonLabel?: string; doneButtonLabel?: string;
/** /**
* Hex color of done button. * Hex color of done button.
*/ */
doneButtonColor?: string; doneButtonColor?: string;
/** /**
* Label of cancel button. * Label of cancel button.
*/ */
cancelButtonLabel?: string; cancelButtonLabel?: string;
/** /**
* Hex color of cancel button. * Hex color of cancel button.
*/ */
cancelButtonColor?: string; cancelButtonColor?: string;
/** /**
* X position of date picker. The position is absolute to the root view of the application. * X position of date picker. The position is absolute to the root view of the application.
*/ */
x?: number; x?: number;
/** /**
* Y position of date picker. The position is absolute to the root view of the application. * Y position of date picker. The position is absolute to the root view of the application.
*/ */
y?: number; y?: number;
/** /**
* Interval between options in the minute section of the date picker. * Interval between options in the minute section of the date picker.
*/ */
minuteInterval?: number; minuteInterval?: number;
/** /**
* Force the UIPopoverArrowDirection enum. The value any will revert to default UIPopoverArrowDirectionAny and let the app choose the proper direction itself. * Force the UIPopoverArrowDirection enum. The value any will revert to default UIPopoverArrowDirectionAny and let the app choose the proper direction itself.
*/ */
popoverArrowDirection?: string; popoverArrowDirection?: string;
/** /**
* Force locale for datePicker. * Force locale for datePicker.
*/ */
locale?: string; locale?: string;
} }
/** /**

View File

@ -1,7 +1,6 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
/** /**
* @name DB Meter * @name DB Meter
* @description This plugin defines a global DBMeter object, which permits to get the decibel values from the microphone. * @description This plugin defines a global DBMeter object, which permits to get the decibel values from the microphone.

View File

@ -1,8 +1,8 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
export interface DeeplinkMatch { export interface DeeplinkMatch {
/** /**
* The route info for the matched route * The route info for the matched route
*/ */
@ -19,6 +19,7 @@ export interface DeeplinkMatch {
* the route was matched (for example, Facebook sometimes adds extra data) * the route was matched (for example, Facebook sometimes adds extra data)
*/ */
$link: any; $link: any;
} }
/** /**

View File

@ -1,6 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
@Plugin({ @Plugin({
pluginName: 'DeviceAccounts', pluginName: 'DeviceAccounts',
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git', plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',

View File

@ -1,7 +1,6 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
export interface AccelerationData { export interface AccelerationData {
/** /**

View File

@ -1,7 +1,6 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
export interface CompassHeading { export interface CompassHeading {
/** /**

View File

@ -12,6 +12,7 @@ export interface PromptCallback {
* The text entered in the prompt dialog box. (String) * The text entered in the prompt dialog box. (String)
*/ */
input1: string; input1: string;
} }

View File

@ -1,8 +1,28 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
declare var cordova: any; declare var cordova: any;
export interface Email {
app?: string;
to?: string | Array<string>;
cc?: string | Array<string>;
bcc?: string | Array<string>;
attachments?: Array<any>;
subject?: string;
body?: string;
isHtml?: boolean;
}
/** /**
* @name Email Composer * @name Email Composer
* @description * @description
@ -103,14 +123,3 @@ export class EmailComposer {
static open(email: Email, scope?: any): Promise<any> { return; } static open(email: Email, scope?: any): Promise<any> { return; }
} }
export interface Email {
app?: string;
to?: string | Array<string>;
cc?: string | Array<string>;
bcc?: string | Array<string>;
attachments?: Array<any>;
subject?: string;
body?: string;
isHtml?: boolean;
}

View File

@ -1,6 +1,20 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
export interface EstimoteBeaconRegion {
state?: string;
major: number;
minor: number;
identifier?: string;
uuid: string;
}
/** /**
* @name EstimoteBeacons * @name EstimoteBeacons
* *
@ -40,6 +54,7 @@ export class EstimoteBeacons {
/** Beacon colour */ /** Beacon colour */
static BeaconColorBlueberryPie = 3; static BeaconColorBlueberryPie = 3;
/** /**
* Beacon colour. * Beacon colour.
*/ */
@ -394,7 +409,6 @@ export class EstimoteBeacons {
}) })
static startSecureMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable<any> { return; } static startSecureMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable<any> { return; }
/** /**
* Stop monitoring secure beacons. Available on iOS. * Stop monitoring secure beacons. Available on iOS.
* This function has the same parameters/behaviour as * This function has the same parameters/behaviour as
@ -481,10 +495,3 @@ export class EstimoteBeacons {
} }
export interface EstimoteBeaconRegion {
state?: string;
major: number;
minor: number;
identifier?: string;
uuid: string;
}

View File

@ -1,5 +1,27 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
export interface FacebookLoginResponse {
status: string;
authResponse: {
session_key: boolean;
accessToken: string;
expiresIn: number;
sig: string;
secret: string;
userID: string;
};
}
/** /**
* @name Facebook * @name Facebook
* @description * @description
@ -249,15 +271,3 @@ export class Facebook {
}): Promise<any> { return; } }): Promise<any> { return; }
} }
export interface FacebookLoginResponse {
status: string;
authResponse: {
session_key: boolean;
accessToken: string;
expiresIn: number;
sig: string;
secret: string;
userID: string;
};
}

View File

@ -1,4 +1,5 @@
import { Plugin, Cordova } from './plugin'; import { Plugin, Cordova } from './plugin';
/** /**
* @name FileChooser * @name FileChooser
* @description * @description
@ -23,10 +24,12 @@ import { Plugin, Cordova } from './plugin';
platforms: ['Android'] platforms: ['Android']
}) })
export class FileChooser { export class FileChooser {
/** /**
* Open a file * Open a file
* @returns {Promise<string>} * @returns {Promise<string>}
*/ */
@Cordova() @Cordova()
static open(): Promise<string> { return; } static open(): Promise<string> { return; }
} }

View File

@ -1,4 +1,5 @@
import { Plugin, Cordova } from './plugin'; import { Plugin, Cordova } from './plugin';
/** /**
* @name FileOpener * @name FileOpener
* @description * @description
@ -19,6 +20,7 @@ import { Plugin, Cordova } from './plugin';
repo: 'https://github.com/pwlin/cordova-plugin-file-opener2' repo: 'https://github.com/pwlin/cordova-plugin-file-opener2'
}) })
export class FileOpener { export class FileOpener {
/** /**
* Open an file * Open an file
* @param filePath {string} File Path * @param filePath {string} File Path
@ -55,4 +57,5 @@ export class FileOpener {
errorName: 'error' errorName: 'error'
}) })
static appIsInstalled(packageId: string): Promise<any> {return; } static appIsInstalled(packageId: string): Promise<any> {return; }
} }

View File

@ -26,6 +26,7 @@ declare var window: any;
platforms: ['Android'] platforms: ['Android']
}) })
export class FilePath { export class FilePath {
/** /**
* Resolve native path for given content URL/path. * Resolve native path for given content URL/path.
* @param {String} path Content URL/path. * @param {String} path Content URL/path.
@ -33,4 +34,5 @@ export class FilePath {
*/ */
@Cordova() @Cordova()
static resolveNativePath(path: string): Promise<string> {return; } static resolveNativePath(path: string): Promise<string> {return; }
} }

View File

@ -1,6 +1,5 @@
import { CordovaInstance, Plugin } from './plugin'; import { CordovaInstance, Plugin } from './plugin';
declare var FileTransfer; declare var FileTransfer;
export interface FileUploadOptions { export interface FileUploadOptions {
@ -46,6 +45,7 @@ export interface FileUploadOptions {
* Content-Type is present, multipart form data will NOT be used. * Content-Type is present, multipart form data will NOT be used.
*/ */
headers?: { [s: string]: any; }; headers?: { [s: string]: any; };
} }
export interface FileUploadResult { export interface FileUploadResult {
@ -69,6 +69,7 @@ export interface FileUploadResult {
* The HTTP response headers by the server. * The HTTP response headers by the server.
*/ */
headers: { [s: string]: any; }; headers: { [s: string]: any; };
} }
export interface FileTransferError { export interface FileTransferError {
@ -103,6 +104,7 @@ export interface FileTransferError {
* Either e.getMessage or e.toString. * Either e.getMessage or e.toString.
*/ */
exception: string; exception: string;
} }
/** /**

View File

@ -1,6 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name Flashlight * @name Flashlight
* @description This plugin allows you to switch the flashlight / torch of the device on and off. * @description This plugin allows you to switch the flashlight / torch of the device on and off.

View File

@ -1,5 +1,8 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
declare var window: any;
/** /**
* @name Geofence * @name Geofence
* @description Monitors circular geofences around latitude/longitude coordinates, and sends a notification to the user when the boundary of a geofence is crossed. Notifications can be sent when the user enters and/or exits a geofence. * @description Monitors circular geofences around latitude/longitude coordinates, and sends a notification to the user when the boundary of a geofence is crossed. Notifications can be sent when the user enters and/or exits a geofence.
@ -71,8 +74,6 @@ import { Observable } from 'rxjs/Observable';
* Try running `ionic platform rm <platform>` then run `ionic platform add <platform>` to recreate the * Try running `ionic platform rm <platform>` then run `ionic platform add <platform>` to recreate the
* platform directories. * platform directories.
*/ */
declare var window: any;
@Plugin({ @Plugin({
pluginName: 'Geofence', pluginName: 'Geofence',
plugin: 'cordova-plugin-geofence', plugin: 'cordova-plugin-geofence',

View File

@ -1,10 +1,10 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
declare var navigator: any; declare var navigator: any;
export interface Coordinates { export interface Coordinates {
/** /**
* a double representing the position's latitude in decimal degrees. * a double representing the position's latitude in decimal degrees.
*/ */
@ -48,6 +48,7 @@ export interface Coordinates {
* This value can be null. * This value can be null.
*/ */
speed: number; speed: number;
} }
export interface Geoposition { export interface Geoposition {
@ -63,6 +64,7 @@ export interface Geoposition {
} }
export interface PositionError { export interface PositionError {
/** /**
* A code that indicates the error that occurred * A code that indicates the error that occurred
*/ */
@ -72,9 +74,11 @@ export interface PositionError {
* A message that can describe the error that occurred * A message that can describe the error that occurred
*/ */
message: string; message: string;
} }
export interface GeolocationOptions { export interface GeolocationOptions {
/** /**
* Is a positive long value indicating the maximum age in milliseconds of a * Is a positive long value indicating the maximum age in milliseconds of a
* possible cached position that is acceptable to return. If set to 0, it * possible cached position that is acceptable to return. If set to 0, it
@ -102,8 +106,8 @@ export interface GeolocationOptions {
* @type {boolean} * @type {boolean}
*/ */
enableHighAccuracy?: boolean; enableHighAccuracy?: boolean;
}
}
/** /**
* @name Geolocation * @name Geolocation
@ -145,6 +149,7 @@ export interface GeolocationOptions {
repo: 'https://github.com/apache/cordova-plugin-geolocation' repo: 'https://github.com/apache/cordova-plugin-geolocation'
}) })
export class Geolocation { export class Geolocation {
/** /**
* Get the device's current position. * Get the device's current position.
* *
@ -182,4 +187,5 @@ export class Geolocation {
} }
); );
} }
} }

View File

@ -1,6 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name Google Plus * @name Google Plus
* @description * @description
@ -21,34 +20,34 @@ import { Cordova, Plugin } from './plugin';
}) })
export class GooglePlus { export class GooglePlus {
/** /**
* The login function walks the user through the Google Auth process. * The login function walks the user through the Google Auth process.
* @param options * @param options
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
static login(options?: any): Promise<any> { return; } static login(options?: any): Promise<any> { return; }
/** /**
* You can call trySilentLogin to check if they're already signed in to the app and sign them in silently if they are. * You can call trySilentLogin to check if they're already signed in to the app and sign them in silently if they are.
* @param options * @param options
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
static trySilentLogin(options?: any): Promise<any> { return; } static trySilentLogin(options?: any): Promise<any> { return; }
/** /**
* This will clear the OAuth2 token. * This will clear the OAuth2 token.
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
static logout(): Promise<any> { return; } static logout(): Promise<any> { return; }
/** /**
* This will clear the OAuth2 token, forget which account was used to login, and disconnect that account from the app. This will require the user to allow the app access again next time they sign in. Be aware that this effect is not always instantaneous. It can take time to completely disconnect. * This will clear the OAuth2 token, forget which account was used to login, and disconnect that account from the app. This will require the user to allow the app access again next time they sign in. Be aware that this effect is not always instantaneous. It can take time to completely disconnect.
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
static disconnect(): Promise<any> { return; } static disconnect(): Promise<any> { return; }
} }

View File

@ -1,6 +1,5 @@
import { Cordova, Plugin } from './plugin'; import { Cordova, Plugin } from './plugin';
declare var window; declare var window;
/** /**
@ -20,6 +19,7 @@ declare var window;
platforms: ['Android', 'iOS', 'Browser'] platforms: ['Android', 'iOS', 'Browser']
}) })
export class GoogleAnalytics { export class GoogleAnalytics {
/** /**
* In your 'deviceready' handler, set up your Analytics tracker. * In your 'deviceready' handler, set up your Analytics tracker.
* https://developers.google.com/analytics/devguides/collection/analyticsjs/ * https://developers.google.com/analytics/devguides/collection/analyticsjs/
@ -187,4 +187,5 @@ export class GoogleAnalytics {
*/ */
@Cordova() @Cordova()
static enableUncaughtExceptionReporting(shouldEnable: boolean): Promise<any> { return; } static enableUncaughtExceptionReporting(shouldEnable: boolean): Promise<any> { return; }
} }