From 4ab87d8abbc747d1f1fae2ffd326f16ceb83f171 Mon Sep 17 00:00:00 2001 From: Eds Date: Wed, 1 Feb 2017 07:42:07 +0100 Subject: [PATCH] feat(inappbrowser): add hide function (#1018) --- src/plugins/inappbrowser.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/inappbrowser.ts b/src/plugins/inappbrowser.ts index ebd265b34..15e377611 100644 --- a/src/plugins/inappbrowser.ts +++ b/src/plugins/inappbrowser.ts @@ -72,6 +72,13 @@ export class InAppBrowser { @CordovaInstance({sync: true}) close(): void { } + /** + * Hides an InAppBrowser window that is currently shown. Calling this has no effect + * if the InAppBrowser was already hidden. + */ + @CordovaInstance({sync: true}) + hide(): void { } + /** * Injects JavaScript code into the InAppBrowser window. * @param script {Object} Details of the script to run, specifying either a file or code key.