modal webview
npm install @twogate/capacitor-modal-webview
npx cap sync
open(options: { options: ModalWebViewOptions; }) => Promise<boolean>
Param | Type |
---|---|
options |
{ options: ModalWebViewOptions; } |
Returns: Promise<boolean>
Prop | Type | Description |
---|---|---|
url |
string |
|
loadWebPageErrorMessage |
string |
|
enableCookie |
boolean |
If true, cookie in the webview will be stored even if you kill application. |
pathToFlushCookie |
string |
only Android. Path, cookie in the webview will be removed when webview load this path page. |
You can set some colors in toolbar, navigation bar and modal view background.
Add Color Set to your Assets.xcassets
ColorSet | Description |
---|---|
ToolBarBackground |
Background color, modal navigation bar and toolbar. |
ToolBarForeground |
Item color of toolbar and navigation bar |
BaseBackground |
Background color of modal. |
Add <color>
tag to your styles.xml
name | Description |
---|---|
colorModalWebViewToolBarForegroundColor |
Background color, modal navigation bar and toolbar. |
colorModalWebViewToolBarBackgroundColor |
Item color of toolbar and navigation bar |
colorModalWebViewBaseBackgroundColor |
Background color of modal. |