Opens a simplified in app browser, prioritizing readability.
If you're looking for additional functionality, this plugin is not for you. ;)
npm install capacitor-reader
npx cap sync
open(options: CapacitorReaderOpenOptions) => Promise<void>
iOS & Android only
Param | Type |
---|---|
options |
CapacitorReaderOpenOptions |
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>
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 |
Prop | Type |
---|---|
remove |
() => Promise<void> |