feat(web-intent): add startService function

This commit is contained in:
Daniel Sogl 2018-03-15 17:42:38 +01:00 committed by GitHub
parent f11be24f74
commit 15bb350d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<any> { return; }
/**
* Request that a given application service be started
* @param options {Object} { action: string, extras?: { option: boolean } }
* @returns {Promise<any>}
*/
@Cordova()
startService(options: { action: string, extras?: { option: boolean } }): Promise<any> { return; }
/**
* Registers a broadcast receiver for the specified filters