Interface IWebBrowser<TNative, TProps>

Since

2.0.11

An object that provides a standard interface for browsing the web.

Example

import WebBrowser from '@smartface/native/ui/webbrowser';
const webBrowser = new WebBrowser({
url: 'https://smartface.io',
barColor: Color.RED,
ios: {
itemColor: Color.GREEN
}
});
webBrowser.show(this);

Type Parameters

Hierarchy

  • INativeMobileComponent<TNative, TProps>
    • IWebBrowser

Properties

nativeObject: TNative
ios: TProps["ios"]
android: TProps["android"]
url: string

Only HTTP and HTTPS URLs are supported.

Property

= ""]

Android

Ios

Since

2.0.11

barColor?: IColor

The color to tint the background of the header bar and bottom bar.

Property

= UI.Color.WHITE]

Android

Ios

Since

2.0.11

Events

  • This function shows WebBrowser on the given UI.Page.

    show

    Android

    Ios

    Since

    2.0.11

    Parameters

    • page: IPage<"load" | "dismissComplete" | "dismissStart" | "dismissCancel" | "hide" | "show" | "orientationChange" | "safeAreaPaddingChange", MobileOSProps<PageIOSParams, PageAndroidParams>, any>

    Returns void

Generated using TypeDoc