New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@twogate/capacitor-modal-webview

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twogate/capacitor-modal-webview

capacitor plugin modal webview

6.0.1
latest
Source
npm
Version published
Maintainers
5
Created
Source

@twogate/capacitor-modal-webview

modal webview

Install

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

API

  • open(...)
  • Interfaces

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

ColorSetDescription
ToolBarBackgroundBackground color, modal navigation bar and toolbar.
ToolBarForegroundItem color of toolbar and navigation bar
BaseBackgroundBackground color of modal.

Android

Add <color> tag to your styles.xml

nameDescription
colorModalWebViewToolBarForegroundColorBackground color, modal navigation bar and toolbar.
colorModalWebViewToolBarBackgroundColorItem color of toolbar and navigation bar
colorModalWebViewBaseBackgroundColorBackground color of modal.

Example

Keywords

capacitor

FAQs

Package last updated on 03 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts