Plugin to display Browser inside Capacitor App
npm install capacitor-browser-view
npx cap sync
open(options: OpenOptions) => Promise<void>
loadUrl(options: { url: string; }) => Promise<void>
Param |
Type |
options |
{ url: string; } |
handleNavigationEvent(...)
handleNavigationEvent(options: { allow: boolean; }) => Promise<void>
Param |
Type |
options |
{ allow: boolean; } |
goBack() => Promise<void>
goForward() => Promise<void>
reload() => Promise<void>
updateDimensions(options: Dimensions) => Promise<void>
addListener('pageLoaded' | 'updateSnapshot' | 'progress' | 'navigationHandler', ...)
addListener(eventName: 'pageLoaded' | 'updateSnapshot' | 'progress' | 'navigationHandler', listenerFunc: (...args: any[]) => void) => Promise<PluginListenerHandle>
Param |
Type |
eventName |
'pageLoaded' | 'updateSnapshot' | 'progress' | 'navigationHandler' |
listenerFunc |
(...args: any[]) => void |
Returns: Promise<PluginListenerHandle>
Prop |
Type |
url |
string |
script |
{ javascript: string; injectionTime?: ScriptInjectionTime; } |
element |
HTMLElement |
userAgent |
string |
Prop |
Type |
width |
number |
height |
number |
x |
number |
y |
number |
Prop |
Type |
remove |
() => Promise<void> |
Members |
atDocumentStart |
atDocumentEnd |