BrowserPlugin

close

close(): Promise<void>
Close an open browser. Only works on iOS, otherwise is a no-op
Returns: Promise<void>

open

open(options: BrowserOpenOptions): Promise<void>
Open a page with the given URL
options BrowserOpenOptions
Returns: Promise<void>

prefetch

prefetch(options: BrowserPrefetchOptions): Promise<void>
Hint to the browser that the given URLs will be accessed to improve initial loading times.
options BrowserPrefetchOptions
Returns: Promise<void>

addListener

addListener(eventName: "browserFinished", listenerFunc: (info: any) => void): PluginListenerHandle
eventName "browserFinished"
listenerFunc (info: any) => void
Returns: PluginListenerHandle

addListener

addListener(eventName: "browserPageLoaded", listenerFunc: (info: any) => void): PluginListenerHandle
eventName "browserPageLoaded"
listenerFunc (info: any) => void
Returns: PluginListenerHandle

Interfaces Used

BrowserOpenOptions

interface BrowserOpenOptions {
// iOS only: The presentation style of the browser. Defaults to fullscreen.
presentationStyle ?: any;
// A hex color to set the toolbar color to.
toolbarColor ?: string;
// The URL to open the browser to
url : string;
// Web only: Optional target for browser open. Follows the `target` property for window.open. Defaults to _blank
windowName ?: string;
}

BrowserPrefetchOptions

interface BrowserPrefetchOptions {
urls : string[];
}