@nadlowebagentur/capacitor-in-app-browser
v0.0.11
Published
Open InApp webView based browser
Readme
capacitor-in-app-browser
Open InApp webView based browser
Install
npm install capacitor-in-app-browser
npx cap syncAPI
open(...)navigate(...)close()back()forward()reload()canGoForward()canGoBack()addListener('urlChanged', ...)- Interfaces
open(...)
open(options: { url: string; marginTop?: number; allowedOrigins?: string[]; blockedOrigins?: string[]; blockTitle?: string; blockMessage?: string; }) => Promise<void>| Param | Type |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| options | { url: string; marginTop?: number; allowedOrigins?: string[]; blockedOrigins?: string[]; blockTitle?: string; blockMessage?: string; } |
navigate(...)
navigate(options: { url: string; }) => Promise<void>| Param | Type |
| ------------- | ----------------------------- |
| options | { url: string; } |
close()
close() => Promise<void>back()
back() => Promise<void>forward()
forward() => Promise<void>reload()
reload() => Promise<void>canGoForward()
canGoForward() => Promise<{ value: boolean; }>Returns: Promise<{ value: boolean; }>
canGoBack()
canGoBack() => Promise<{ value: boolean; }>Returns: Promise<{ value: boolean; }>
addListener('urlChanged', ...)
addListener(eventName: 'urlChanged', listenerFunc: (data: { url: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandleiOS 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> |
