feat(in-app-browser): add "beforeload" callback method (#3249)

* fix(in-app-browser): Added missing callback method on the "beforeload" event ([issue#3152](https://github.com/ionic-team/ionic-native/issues/3152))

* fix(in-app-browser): Missing "beforeload" callback method
This commit is contained in:
Michael Read 2019-12-08 23:49:51 -06:00 committed by Daniel Sogl
parent 1aa89ae311
commit a22ee6ed2b

View File

@ -178,6 +178,13 @@ export class InAppBrowserObject {
} }
} }
/**
* Method to be called after the "beforeload" event to continue the script
* @param strUrl {String} The URL the InAppBrowser should navigate to.
*/
@CordovaInstance({ sync: true })
_loadAfterBeforeload(strUrl: string): void {}
/** /**
* Displays an InAppBrowser window that was opened hidden. Calling this has no effect * Displays an InAppBrowser window that was opened hidden. Calling this has no effect
* if the InAppBrowser was already visible. * if the InAppBrowser was already visible.