@nadlowebagentur/capacitor-in-app-browser
v0.0.4
Published
Open InApp webView based browser
Downloads
49
Readme
capacitor-in-app-browser
Open InApp webView based browser
Install
npm install capacitor-in-app-browser
npx cap sync
API
open(...)
open(options: { url: string; marginTop?: number; }) => Promise<void>
| Param | Type |
| ------------- | ------------------------------------------------- |
| options
| { url: string; marginTop?: number; } |
navigate(...)
navigate(options: { url: string; }) => Promise<void>
| Param | Type |
| ------------- | ----------------------------- |
| options
| { url: string; } |
close()
close() => Promise<void>
addListener('urlChanged', ...)
addListener(eventName: 'urlChanged', listenerFunc: (data: { url: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
iOS only: Listen for the browser url changed event. It fires when the Browser navigate to other URL.
| Param | Type |
| ------------------ | ------------------------------------------------ |
| eventName
| 'urlChanged' |
| listenerFunc
| (data: { url: string; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Since: 0.0.1
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |