From 34aeb196285fa285f8a3744f92753c87468f92cb Mon Sep 17 00:00:00 2001 From: Wouter Klein Heerenbrink Date: Sun, 27 May 2018 19:01:36 +0200 Subject: [PATCH] feat(send-result): add sendResult method for WebIntent plugin (#2495) --- src/@ionic-native/plugins/web-intent/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index 381181fae..619b0030b 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -216,4 +216,14 @@ export class WebIntent extends IonicNativePlugin { getIntent(): Promise { return; } + + /** + * Send a result back to the Intent that started this Activity. + * The data can be passed using 'extras'. + * @returns {Promise} + */ + @Cordova() + sendResult({ extras: {}}): Promise { + return; + } }