Socket
Book a DemoInstallSign in
Socket

capacitor-reader

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-reader

Opens a simplified in app browser, prioritizing readability

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
48
108.7%
Maintainers
0
Weekly downloads
 
Created
Source

capacitor-reader

Opens a simplified in app browser, prioritizing readability.

If you're looking for additional functionality, this plugin is not for you. ;)

Install

npm install capacitor-reader
npx cap sync

API

  • open(...)
  • addListener('browserFinished', ...)
  • Interfaces

open(...)

open(options: CapacitorReaderOpenOptions) => Promise<void>

iOS & Android only

ParamType
optionsCapacitorReaderOpenOptions

addListener('browserFinished', ...)

addListener(eventName: 'browserFinished', listenerFunc: () => void) => Promise<PluginListenerHandle>

iOS only: Listen for the browser finished event. It fires when the Browser is closed by the user.

This is necessary for those that want to track iOS status taps (since capacitor swizzles all iOS navigation taps)

ParamType
eventName'browserFinished'
listenerFunc() => void

Returns: Promise<PluginListenerHandle>

Interfaces

CapacitorReaderOpenOptions

PropTypeDescriptionDefault
urlstring
toolbarColorstringThe color of the toolbar
entersReaderIfAvailablebooleanWhether to enter reader mode if available iOS onlyfalse

PluginListenerHandle

PropType
remove() => Promise<void>

Keywords

capacitor

FAQs

Package last updated on 26 Jan 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.