Merge in v5 code

This commit is contained in:
Ibby Hadeed
2017-12-28 07:28:44 -05:00
parent d43fe72f7b
commit 0f9c21ab42
255 changed files with 11473 additions and 6501 deletions
+48 -28
View File
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
/**
@@ -20,7 +20,7 @@ import { Observable } from 'rxjs/Observable';
* action: this.webIntent.ACTION_VIEW,
* url: 'path/to/file',
* type: 'application/vnd.android.package-archive'
* };
* }
*
* this.webIntent.startActivity(options).then(onSuccess, onError);
*
@@ -40,70 +40,70 @@ export class WebIntent extends IonicNativePlugin {
* Convenience constant for actions
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
ACTION_SEND: string;
/**
* Convenience constant for actions
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
ACTION_VIEW: string;
/**
* Convenience constant for extras
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
EXTRA_TEXT: string;
/**
* Convenience constant for extras
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
EXTRA_SUBJECT: string;
/**
* Convenience constant for extras
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
EXTRA_STREAM: string;
/**
* Convenience constant for extras
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
EXTRA_EMAIL: string;
/**
* Convenience constant for actions
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
ACTION_CALL: string;
/**
* Convenience constant for actions
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
ACTION_SENDTO: string;
/**
* Convenience constant for actions
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
ACTION_GET_CONTENT: string;
/**
* Convenience constant for actions
* @type {string}
*/
@CordovaProperty
@CordovaProperty()
ACTION_PICK: string;
@@ -113,7 +113,9 @@ export class WebIntent extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
startActivity(options: { action: any, url: string, type?: string }): Promise<any> { return; }
startActivity(options: { action: any, url: string, type?: string }): Promise<any> {
return;
}
/**
* Starts a new activity and return the result to the application
@@ -121,7 +123,9 @@ export class WebIntent extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
startActivityForResult(options: { action: any, url: string, type?: string }): Promise<any> { return; }
startActivityForResult(options: { action: any, url: string, type?: string }): Promise<any> {
return;
}
/**
* Checks if this app was invoked with specified extra
@@ -129,7 +133,9 @@ export class WebIntent extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
hasExtra(extra: string): Promise<any> { return; }
hasExtra(extra: string): Promise<any> {
return;
}
/**
* Gets the extra that this app was invoked with
@@ -137,14 +143,18 @@ export class WebIntent extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
getExtra(extra: string): Promise<any> { return; }
getExtra(extra: string): Promise<any> {
return;
}
/**
* Gets the Uri the app was invoked with
* @returns {Promise<any>}
*/
@Cordova()
getUri(): Promise<string> { return; };
getUri(): Promise<string> {
return;
}
/**
* @returns {Observable<string>}
@@ -152,7 +162,9 @@ export class WebIntent extends IonicNativePlugin {
@Cordova({
observable: true
})
onNewIntent(): Observable<string> { return; };
onNewIntent(): Observable<string> {
return;
}
/**
* Sends a custom intent passing optional extras
@@ -160,37 +172,45 @@ export class WebIntent extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise<any> { return; }
sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise<any> {
return;
}
/**
* Registers a broadcast receiver for the specified filters
* @param filters {any}
*/
@Cordova({ sync: true })
registerBroadcastReceiver(filters: any): void { }
registerBroadcastReceiver(filters: any): void {
}
/**
* Unregisters a broadcast receiver
*/
@Cordova({ sync: true })
unregisterBroadcastReceiver(): void { }
unregisterBroadcastReceiver(): void {
}
/**
* Returns the content of the intent used whenever the application activity is launched
*/
* Returns the content of the intent used whenever the application activity is launched
*/
@Cordova({ sync: true })
onIntent(): void { }
onIntent(): void {
}
/**
*
*/
*
*/
@Cordova({ sync: true })
onActivityResult(): void { }
onActivityResult(): void {
}
/**
* @returns {Promise<any>}
*/
@Cordova()
getIntent(): Promise<any> { return; };
getIntent(): Promise<any> {
return;
}
}