capacitor inappbrowser
npm install wowguagua-inappbrowercapacitor inappbrowser
``bash`
npm install wowguagua-inappbrower
npx cap sync
* echo(...)
* openInAppBrowser(...)
* Interfaces
`typescript`
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
--------------------
`typescript`
openInAppBrowser(options: OpenInAppBrowserOptions) => Promise
| Param | Type |
| ------------- | --------------------------------------------------------------------------- |
| options | OpenInAppBrowserOptions |
--------------------
#### OpenInAppBrowserOptions
| Prop | Type |
| ----------- | ------------------- |
| url | string |
| title | string |
These config values are available:
| Prop | Type | Default
| ----------- | ------------------- | -------
| headerTextColor | string | #242828
| progressBarColor | string | #007AFF
In capacitor.config.json:
``json
{
"plugins": {
"InAppBrowser": {
"headerTextColor": "#242828",
"progressBarColor": "#007AFF"
}
}
}