Merge branch 'master' into v5

This commit is contained in:
Daniel Sogl
2019-01-20 17:37:35 +01:00
parent 34ecd29d9f
commit a9dbb23b23
15 changed files with 2567 additions and 322 deletions
+26 -5
View File
@@ -7,6 +7,27 @@ import {
} from '@ionic-native/core';
import { Observable } from 'rxjs';
export interface IntentClipItem {
uri: string;
type?: string;
extension?: string;
}
export interface Intent {
action: string;
clipItems: IntentClipItem[];
component: string;
extras: object;
flags: number;
type: string;
}
export interface RegisterBroadcastReceiverOptions {
filterActions?: string[];
filterCategories?: string[];
filterDataSchemes?: string[];
}
export interface IntentOptions {
requestCode?: number;
type?: string;
@@ -192,12 +213,12 @@ export class WebIntent extends IonicNativePlugin {
/**
* Returns the content of the intent used whenever the application activity is launched
* @returns {Observable<string>}
* @returns {Observable<Intent>}
*/
@Cordova({
observable: true
})
onIntent(): Observable<string> {
onIntent(): Observable<Intent> {
return;
}
@@ -223,13 +244,13 @@ export class WebIntent extends IonicNativePlugin {
/**
* Registers a broadcast receiver for the specified filters
* @param filters {any}
* @param filters {RegisterBroadcastReceiverOptions}
* @returns {Observable<any>}
*/
@Cordova({
observable: true
})
registerBroadcastReceiver(filters: any): Observable<any> {
registerBroadcastReceiver(filters: RegisterBroadcastReceiverOptions): Observable<any> {
return;
}
@@ -249,7 +270,7 @@ export class WebIntent extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
getIntent(): Promise<any> {
getIntent(): Promise<Intent> {
return;
}