@jackobo/capacitor-user-agent-replace
v7.0.0
Published
Capacitor plugin for replacing the WebView user agent
Readme
@jackobo/capacitor-user-agent-replace
Capacitor plugin for replacing the WebView user agent
Install
npm install @jackobo/capacitor-user-agent-replace
npx cap syncAPI
replace(...)
replace(options: IReplaceOptions) => Promise<void>Replace the WebView userAgent with the provided one in the options.userAgent parameter
| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options | IReplaceOptions |
restore()
restore() => Promise<void>Restore WebView userAgent to the initial value
Interfaces
IReplaceOptions
Options for replace method
| Prop | Type | Description |
| --------------- | ------------------- | --------------------------------------- |
| userAgent | string | The new userAgent to set on the WebView |
