feat(send-result): add sendResult method for WebIntent plugin (#2495)

This commit is contained in:
Wouter Klein Heerenbrink 2018-05-27 19:01:36 +02:00 committed by Daniel Sogl
parent d6a9ed134e
commit 34aeb19628

View File

@ -216,4 +216,14 @@ export class WebIntent extends IonicNativePlugin {
getIntent(): Promise<any> {
return;
}
/**
* Send a result back to the Intent that started this Activity.
* The data can be passed using 'extras'.
* @returns {Promise<any>}
*/
@Cordova()
sendResult({ extras: {}}): Promise<any> {
return;
}
}