diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts index bf7e9cf55..d3fc9a425 100644 --- a/src/@ionic-native/plugins/calendar/index.ts +++ b/src/@ionic-native/plugins/calendar/index.ts @@ -153,11 +153,11 @@ export class Calendar extends IonicNativePlugin { /** * Create a calendar. (iOS only) * - * @param {string | CalendarOptions} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string + * @param {string | NameOrOptions} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string * @returns {Promise} Returns a Promise */ @Cordova() - createCalendar(nameOrOptions: string | CalendarOptions): Promise { + createCalendar(nameOrOptions: string | NameOrOptions): Promise { return; } diff --git a/src/@ionic-native/plugins/file-picker/index.ts b/src/@ionic-native/plugins/file-picker/index.ts index 02a8cbd66..476446f65 100644 --- a/src/@ionic-native/plugins/file-picker/index.ts +++ b/src/@ionic-native/plugins/file-picker/index.ts @@ -1,6 +1,13 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +export interface IOSFilePickerPosition { + x: number; + y: number; + width: number; + height: number; +}; + /** * @name iOS File Picker * @description @@ -20,6 +27,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * .catch(err => console.log('Error', err)); * * ``` + * @interfaces + * IOSFilePickerPosition */ @Plugin({ pluginName: 'iOS File Picker', @@ -32,10 +41,17 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export class IOSFilePicker extends IonicNativePlugin { /** * Open a file + * @params {string | string[]} [utis] + * @params {IOSFilePickerPosition} [position] Set the position of the rectangle where the file picker should show up. * @returns {Promise} */ - @Cordova() - pickFile(): Promise { + @Cordova({ + callbackOrder: 'reverse' + }) + pickFile( + utis?: string | string[], + position?: IOSFilePickerPosition + ): Promise { return; } } diff --git a/src/@ionic-native/plugins/ibeacon/index.ts b/src/@ionic-native/plugins/ibeacon/index.ts index b90f0018a..da3fd6450 100644 --- a/src/@ionic-native/plugins/ibeacon/index.ts +++ b/src/@ionic-native/plugins/ibeacon/index.ts @@ -505,9 +505,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startMonitoringForRegion(region: BeaconRegion): Promise { - return; - } + startMonitoringForRegion(region: Region): Promise { return; } /** * Stop monitoring the specified region. It is valid to call @@ -524,9 +522,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopMonitoringForRegion(region: BeaconRegion): Promise { - return; - } + stopMonitoringForRegion(region: Region): Promise { return; } /** * Request state the for specified region. When result is ready @@ -561,9 +557,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startRangingBeaconsInRegion(region: BeaconRegion): Promise { - return; - } + startRangingBeaconsInRegion(region: Region): Promise { return; } /** * Stop ranging the specified region. It is valid to call @@ -580,9 +574,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopRangingBeaconsInRegion(region: BeaconRegion): Promise { - return; - } + stopRangingBeaconsInRegion(region: Region): Promise { return; } /** * Queries the native layer to determine the current authorization in effect. diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index b5de3cc80..94f54e5af 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -7,6 +7,20 @@ import { } from '@ionic-native/core'; import { Observable } from 'rxjs'; +export interface IntentOptions { + requestCode?: number; + type?: string; + package?: string; + url?: string; + extras?: object; + action?: string; + component?: { + package: string; + class: string; + }; + flags?: number[]; +}; + /** * @name Web Intent * @description @@ -30,6 +44,8 @@ import { Observable } from 'rxjs'; * this.webIntent.startActivity(options).then(onSuccess, onError); * * ``` + * @interfaces + * IntentOptions */ @Plugin({ pluginName: 'WebIntent', @@ -103,30 +119,21 @@ export class WebIntent extends IonicNativePlugin { /** * Launches an Android intent - * @param options {Object} { action: any, url: string, type?: string } + * @param options {IntentOptions} * @returns {Promise} */ @Cordova() - startActivity(options: { - action: any; - extras?: any; - url: string; - type?: string; - }): Promise { + startActivity(options: IntentOptions): Promise { return; } /** * Starts a new activity and return the result to the application - * @param options {Object} { action: any, url: string, type?: string } + * @param options {IntentOptions} * @returns {Promise} */ @Cordova() - startActivityForResult(options: { - action: any; - url: string; - type?: string; - }): Promise { + startActivityForResult(options: IntentOptions): Promise { return; } @@ -172,27 +179,21 @@ export class WebIntent extends IonicNativePlugin { /** * Sends a custom intent passing optional extras - * @param options {Object} { action: string, extras?: { option: boolean } } + * @param options {IntentOptions} * @returns {Promise} */ @Cordova() - sendBroadcast(options: { - action: string; - extras?: { option: boolean }; - }): Promise { + sendBroadcast(options: IntentOptions): Promise { return; } /** * Request that a given application service be started - * @param options {Object} { action: string, extras?: { option: boolean } } + * @param options {IntentOptions} * @returns {Promise} */ @Cordova() - startService(options: { - action: string; - extras?: { option: boolean }; - }): Promise { + startService(options: IntentOptions): Promise { return; }