0.2.1 • Published 4 months ago

@twogate/capacitor-modal-webview v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@twogate/capacitor-modal-webview

modal webview

Install

npm install @twogate/capacitor-modal-webview
npx cap sync

API

open(...)

open(options: { options: ModalWebViewOptions; }) => Promise<boolean>
ParamType
options{ options: ModalWebViewOptions; }

Returns: Promise<boolean>


Interfaces

ModalWebViewOptions

PropTypeDescription
urlstring
loadWebPageErrorMessagestring
enableCookiebooleanIf true, cookie in the webview will be stored even if you kill application.
pathToFlushCookiestringonly Android. Path, cookie in the webview will be removed when webview load this path page.

Theme

You can set some colors in toolbar, navigation bar and modal view background.

iOS

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. |

Android

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. |

Example

0.2.1

4 months ago

0.2.0

5 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.1

11 months ago