diff --git a/src/plugins/inappbrowser.ts b/src/plugins/inappbrowser.ts index ebd265b345..15e377611f 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.