From 15bb350d8e346a035bfbfb0ab4f4370b5f4a3980 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 17:42:38 +0100 Subject: [PATCH] feat(web-intent): add startService function --- src/@ionic-native/plugins/web-intent/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index a41f063b6..2306bfa2a 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -6,6 +6,7 @@ import { Observable } from 'rxjs/Observable'; * @beta * @name Web Intent * @description + * This Plugin provides a general purpose shim layer for the Android intent mechanism, exposing various ways to handle sending and receiving intents. * @usage * For usage information please refer to the plugin's Github repo. * @@ -161,6 +162,14 @@ export class WebIntent extends IonicNativePlugin { */ @Cordova() sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise { return; } + + /** + * Request that a given application service be started + * @param options {Object} { action: string, extras?: { option: boolean } } + * @returns {Promise} + */ + @Cordova() + startService(options: { action: string, extras?: { option: boolean } }): Promise { return; } /** * Registers a broadcast receiver for the specified filters