capacitor-reader
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

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

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

iOS & Android only

Param Type
options CapacitorReaderOpenOptions

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)

Param Type
eventName 'browserFinished'
listenerFunc () => void

Returns: Promise<PluginListenerHandle>


Interfaces

CapacitorReaderOpenOptions

Prop Type Description Default
url string
toolbarColor string The color of the toolbar
entersReaderIfAvailable boolean Whether to enter reader mode if available iOS only false

PluginListenerHandle

Prop Type
remove () => Promise<void>

Readme

Keywords

Package Sidebar

Install

npm i capacitor-reader

Weekly Downloads

211

Version

0.3.1

License

MIT

Unpacked Size

26.2 kB

Total Files

28

Last publish

Collaborators

  • aeharding