{"_id":"@capawesome/capacitor-text-interaction","_rev":"4-cea69d2e4999c5d4fe6aff3d3dfe5860","name":"@capawesome/capacitor-text-interaction","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"@capawesome/capacitor-text-interaction","version":"0.0.1","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-text-interaction@0.0.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/text-interaction/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"a8bca3abb86fb1f3f47e781055cb3e7a842f2253","tarball":"https://registry.npmjs.org/@capawesome/capacitor-text-interaction/-/capacitor-text-interaction-0.0.1.tgz","fileCount":28,"integrity":"sha512-CGmepeEU4FD+TKWoRwAlxxC6HXH5CqqVcEFIDxh6q1fcgaDgk64LjdldJHonScNxu9ID377N+MZiEUVADDYtIg==","signatures":[{"sig":"MEUCIHpnqUaETvarYE56zIU85zLhBSemA2HGOTfCY61FYQaZAiEAi3YIdXhgad0GEBqOGutaYdTRsbx8pqLBlllw4rpNeTk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29323},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"a8c9e0f3c4687c6a9f4fc7554f3dc79536ad5154","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TextInteractionPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.13.0","description":"Capacitor plugin to enable and disable text interaction in the WebView.","directories":{},"_nodeVersion":"24.16.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-text-interaction_0.0.1_1783449395144_0.6215554770582579","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@capawesome/capacitor-text-interaction","version":"0.1.0","keywords":["capacitor","plugin","native","capacitor-plugin","text interaction","text selection","disable text selection","user-select","callout menu","magnifier","webview","ios"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-text-interaction@0.1.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/text-interaction/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"d0dd7467c15aaac385fca3d084176022a5b74551","tarball":"https://registry.npmjs.org/@capawesome/capacitor-text-interaction/-/capacitor-text-interaction-0.1.0.tgz","fileCount":28,"integrity":"sha512-LlRS2Z7d3HFBuYn+dYeCbfLtqo0ONdGEzt7iDEmmRILfHxHHzQ0T8SMKM7q9xz89/xwgVtgi1APufzubQs6YpA==","signatures":[{"sig":"MEUCIGUroAI/K/OAjigFQP5uVl/WjM+ZM2CZ0Up/1Stesy+WAiEAsa8pyhr6KnVSsDBkDvaPYUfofHEstFlWwO5/ib/IJEQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-text-interaction@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":33489},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"1ce17b1fd14c43b2f1d5d3c2da82221e1d1dca37","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TextInteractionPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:59809251-467a-41de-90d0-d738bb866d99"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.16.0","description":"Capacitor plugin to enable and disable text interaction in the WebView on iOS.","directories":{},"_nodeVersion":"24.18.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-text-interaction_0.1.0_1784015605963_0.10649404813889052","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@capawesome/capacitor-text-interaction","version":"0.1.1","keywords":["capacitor","plugin","native","capacitor-plugin","text interaction","text selection","disable text selection","user-select","callout menu","magnifier","webview","ios"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-text-interaction@0.1.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/text-interaction/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"a8881ba2f63353994a8ecc094c02fef5aafc5f2b","tarball":"https://registry.npmjs.org/@capawesome/capacitor-text-interaction/-/capacitor-text-interaction-0.1.1.tgz","fileCount":28,"integrity":"sha512-iLCrOFx0OrnbqdJV3H57WVDpypk5T3qoE5NtUnS70zdAF2puIcNZzMiMVlPE72I+AO1owQsYW1hKR32zFAWzoQ==","signatures":[{"sig":"MEUCIQC3cJU1oOCXSeEroJDSlnJfX2NyK2kVfCNBGKTifz2u4gIgSNl1UDbpIwM94sTNTMxjQmHtOlycsW0AKu9Gva+Kz2c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-text-interaction@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":33498},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"3e61f4b412f9f3f512c21169bb135bbb23a67e6d","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TextInteractionPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:59809251-467a-41de-90d0-d738bb866d99"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.16.0","description":"Capacitor plugin to enable and disable text interaction in the WebView on iOS.","directories":{},"_nodeVersion":"24.18.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-text-interaction_0.1.1_1784103061164_0.3823808280170582","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@capawesome/capacitor-text-interaction","version":"0.1.2","description":"Capacitor plugin to enable and disable text interaction in the WebView on iOS.","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/capawesome-team/capacitor-plugins.git"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"funding":[{"type":"github","url":"https://github.com/sponsors/capawesome-team/"},{"type":"opencollective","url":"https://opencollective.com/capawesome"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/text-interaction/","keywords":["capacitor","plugin","native","capacitor-plugin","text interaction","text selection","disable text selection","user-select","callout menu","magnifier","webview","ios"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:android":"cd android && ./gradlew clean build test && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","eslint":"eslint . --ext ts","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api TextInteractionPlugin --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd ..","prepublishOnly":"npm run build"},"devDependencies":{"@capacitor/android":"8.0.0","@capacitor/cli":"8.4.2","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/ios":"8.0.0","@ionic/eslint-config":"0.4.0","eslint":"8.57.0","prettier-plugin-java":"2.9.7","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"publishConfig":{"access":"public"},"gitHead":"7c1937ed10b7de86ca2c1cdc3539a2735fd69a00","_id":"@capawesome/capacitor-text-interaction@0.1.2","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-rdumYC8R2iEfuR4IKG2D1xY0MY71eHJKVAVd84ZigC1qbodyCVJ1obu0k7TWRVzuz4ER8i3wU14iyLUyi4KzBg==","shasum":"306c294f77033fa5ed7939a062bca10887e0c34a","tarball":"https://registry.npmjs.org/@capawesome/capacitor-text-interaction/-/capacitor-text-interaction-0.1.2.tgz","fileCount":28,"unpackedSize":33730,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-text-interaction@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEisLWq5KlYv03RzqRhlaSnxZC7piiwjr4LEOhUBnM9pAiEAtgEJBUMeYMlMCR8s9Fe0wwkcstmcgc1pesCHm7T5Qws="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:59809251-467a-41de-90d0-d738bb866d99"}},"directories":{},"maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-text-interaction_0.1.2_1788337424267_0.009646999491371933"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-07T18:36:34.839Z","modified":"2026-09-02T08:23:44.806Z","0.0.1":"2026-07-07T18:36:35.292Z","0.1.0":"2026-07-14T07:53:26.092Z","0.1.1":"2026-07-15T08:11:01.304Z","0.1.2":"2026-09-02T08:23:44.415Z"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","homepage":"https://capawesome.io/docs/sdks/capacitor/text-interaction/","keywords":["capacitor","plugin","native","capacitor-plugin","text interaction","text selection","disable text selection","user-select","callout menu","magnifier","webview","ios"],"repository":{"type":"git","url":"git+https://github.com/capawesome-team/capacitor-plugins.git"},"description":"Capacitor plugin to enable and disable text interaction in the WebView on iOS.","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"readme":"# Capacitor Text Interaction Plugin\n\nCapacitor plugin to enable and disable text interaction (selection, magnifier, callout menu) in the app's WebView.\n\n<div class=\"capawesome-z29o10a\">\n  <a href=\"https://cloud.capawesome.io/\" target=\"_blank\">\n    <img alt=\"Deliver Live Updates to your Capacitor app with Capawesome Cloud\" src=\"https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1\" />\n  </a>\n</div>\n\n## Features\n\n- ✋ **Text interaction**: Enable and disable text interaction at runtime.\n- 🔍 **State**: Read whether text interaction is currently enabled.\n- 🧩 **Zero-config**: No changes to your native project required.\n- 🤝 **Compatibility**: Works alongside the [Clipboard](https://capawesome.io/docs/sdks/capacitor/clipboard/), [Privacy Screen](https://capawesome.io/docs/sdks/capacitor/privacy-screen/) and [System WebView](https://capawesome.io/docs/sdks/capacitor/system-webview/) plugins.\n- 📦 **CocoaPods & SPM**: Supports CocoaPods and Swift Package Manager for iOS.\n- 🔁 **Up-to-date**: Always supports the latest Capacitor version.\n\nMissing a feature? Just [open an issue](https://github.com/capawesome-team/capacitor-plugins/issues) and we'll take a look!\n\n## Use Cases\n\nThe Text Interaction plugin is typically used to make web content feel like a native app, for example:\n\n- **App-like UIs**: Disable text selection, the magnifier and the callout menu so buttons, menus and other controls don't trigger accidental text selection.\n- **Kiosk apps**: Prevent users from selecting and copying content in apps running on public or shared devices.\n- **Reading views**: Re-enable text interaction at runtime in views where users should be able to select and copy text.\n- **Settings toggles**: Read the current state with `isEnabled()` to keep an in-app toggle in sync.\n\n## Compatibility\n\n| Plugin Version | Capacitor Version | Status         |\n| -------------- | ----------------- | -------------- |\n| 0.x.x          | >=8.x.x           | Active support |\n\n## Installation\n\nYou can use our **AI-Assisted Setup** to install the plugin.\nAdd the [Capawesome Skills](https://github.com/capawesome-team/skills) to your AI tool using the following command:\n\n```bash\nnpx skills add capawesome-team/skills --skill capacitor-plugins\n```\n\nThen use the following prompt:\n\n```\n Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-text-interaction` plugin in my project.\n```\n\nIf you prefer **Manual Setup**, install the plugin by running the following commands and follow the platform-specific instructions below:\n\n```bash\nnpm install @capawesome/capacitor-text-interaction\nnpx cap sync\n```\n\nThis plugin is only available on **iOS**. On Android and Web, all methods reject as unimplemented. On Web, use the CSS `user-select` property to prevent text selection instead.\n\n### iOS\n\nNo additional setup is required.\n\n## Configuration\n\nNo configuration required for this plugin.\n\n## Usage\n\nThe following examples show how to disable text interaction, enable it again, and check whether it is currently enabled.\n\n### Disable text interaction\n\nTurn off the system text-interaction gestures, that is text selection, the selection magnifier and the callout (copy/paste) menu. Only available on iOS:\n\n```typescript\nimport { TextInteraction } from '@capawesome/capacitor-text-interaction';\n\nconst disable = async () => {\n  await TextInteraction.disable();\n};\n```\n\n### Enable text interaction\n\nRe-enable text interaction after it has been disabled. Text interaction is enabled by default. Only available on iOS:\n\n```typescript\nimport { TextInteraction } from '@capawesome/capacitor-text-interaction';\n\nconst enable = async () => {\n  await TextInteraction.enable();\n};\n```\n\n### Check whether text interaction is enabled\n\nRead the current state, for example to keep a settings toggle in sync. Only available on iOS:\n\n```typescript\nimport { TextInteraction } from '@capawesome/capacitor-text-interaction';\n\nconst isEnabled = async () => {\n  const { enabled } = await TextInteraction.isEnabled();\n  return enabled;\n};\n```\n\n## API\n\n<docgen-index>\n\n* [`disable()`](#disable)\n* [`enable()`](#enable)\n* [`isEnabled()`](#isenabled)\n* [Interfaces](#interfaces)\n\n</docgen-index>\n\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### disable()\n\n```typescript\ndisable() => Promise<void>\n```\n\nDisable text interaction in the app's WebView.\n\nThis turns off system text-interaction gestures such as text selection,\nthe selection magnifier and the callout (copy/paste) menu.\n\nOnly available on iOS.\n\n**Since:** 0.1.0\n\n--------------------\n\n\n### enable()\n\n```typescript\nenable() => Promise<void>\n```\n\nEnable text interaction in the app's WebView.\n\nText interaction is enabled by default.\n\nOnly available on iOS.\n\n**Since:** 0.1.0\n\n--------------------\n\n\n### isEnabled()\n\n```typescript\nisEnabled() => Promise<IsEnabledResult>\n```\n\nCheck whether text interaction is currently enabled in the app's WebView.\n\nOnly available on iOS.\n\n**Returns:** <code>Promise&lt;<a href=\"#isenabledresult\">IsEnabledResult</a>&gt;</code>\n\n**Since:** 0.1.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### IsEnabledResult\n\n| Prop          | Type                 | Description                                    | Since |\n| ------------- | -------------------- | ---------------------------------------------- | ----- |\n| **`enabled`** | <code>boolean</code> | Whether text interaction is currently enabled. | 0.1.0 |\n\n</docgen-api>\n\n## Text Interaction Behavior\n\nText interaction covers the system gestures that let a user work with text in the WebView: text selection, the selection magnifier and the callout (copy/paste) menu.\n\n- **Beyond CSS**: The CSS `user-select: none` property prevents text selection for specific elements and covers most cases. This plugin disables the system text-interaction gestures as a whole, which is useful for app-like UIs where accidental text selection breaks the experience.\n- **Default state**: Text interaction is enabled by default.\n- **Runtime toggling**: Changes apply to the WebView's configuration. If a change does not take effect immediately on already-rendered content, reload the WebView content to apply it.\n\n## FAQ\n\n### How is this plugin different from other similar plugins?\n\nIt disables the system text-interaction gestures — text selection, the selection magnifier, and the callout (copy/paste) menu — as a whole at runtime, which is exactly what app-like UIs need when accidental selection breaks the experience. It requires no native setup, exposes a fully typed API with a state check so you can keep an in-app toggle in sync, and ships for both CocoaPods and Swift Package Manager. If the CSS `user-select: none` property on specific elements covers your case, that is perfectly fine; if you want to control the WebView's text gestures as a whole, this plugin is built for it.\n\n### Why is this plugin only available on iOS?\n\nThe plugin controls the system text-interaction gestures of the iOS WebView. On Android and Web, all methods reject as unimplemented. On Web, you can use the CSS `user-select` property to prevent text selection instead.\n\n### What is the difference between this plugin and the CSS `user-select` property?\n\nThe CSS `user-select: none` property prevents text selection for specific elements and covers most cases. This plugin disables the system text-interaction gestures as a whole, including text selection, the selection magnifier and the callout (copy/paste) menu, which is useful for app-like UIs where accidental text selection breaks the experience. See [Text Interaction Behavior](#text-interaction-behavior) for more details.\n\n### Is text interaction enabled by default?\n\nYes, text interaction is enabled by default. Call `disable()` to turn it off and `enable()` to restore the default behavior. You can read the current state at any time with `isEnabled()`.\n\n### Why does a change not take effect immediately?\n\nChanges apply to the WebView's configuration. If a change does not take effect immediately on already-rendered content, reload the WebView content to apply it.\n\n### Can I use this plugin with Ionic, React, Vue or Angular?\n\nYes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.\n\n## Related Plugins\n\n- [Clipboard](https://capawesome.io/docs/sdks/capacitor/clipboard/): Read from and write to the system clipboard.\n- [Privacy Screen](https://capawesome.io/docs/sdks/capacitor/privacy-screen/): Hide sensitive app content in the app switcher and block screenshots.\n- [System WebView](https://capawesome.io/docs/sdks/capacitor/system-webview/): Detect an outdated Android System WebView and guide users to update it.\n- [Text Zoom](https://capawesome.io/docs/sdks/capacitor/text-zoom/): Read and control the WebView text zoom.\n\n## Newsletter\n\nStay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/text-interaction/CHANGELOG.md).\n\n## License\n\nSee [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/text-interaction/LICENSE).\n","readmeFilename":"README.md"}