UNPKG

vt-nativescript-advanced-webview

Version:

An advanced webview using Chrome CustomTabs on Android and SFSafariViewController on iOS.

36 lines (29 loc) 732 B
/** * Open the Advanced WebView - Safari on iOS and Chrome on Android. * If the browser is not installed on the device, it should fall back to a webview. * @param {AdvancedWebViewOptions} */ export function openAdvancedUrl(options: AdvancedWebViewOptions): void; export function init(): void; export interface AdvancedWebViewOptions { /** * The url of the site to open. */ url: string; /** * The color of the toolbar. */ toolbarColor?: string; /** * Set true to show the site title. *** ANDROID ONLY *** */ showTitle?: boolean; /** * The color of the toolbar controls. *** iOS ONLY *** */ toolbarControlsColor?: string; /** * Callback for when the webview is closed */ isClosed?: Function; }