{"id":31433408,"url":"https://github.com/cap-go/capacitor-textinteraction","last_synced_at":"2026-04-20T14:09:05.984Z","repository":{"id":316412146,"uuid":"1063194762","full_name":"Cap-go/capacitor-textinteraction","owner":"Cap-go","description":"Capacitor plugin to toggle text interaction in iOS apps","archived":false,"fork":false,"pushed_at":"2026-04-16T12:37:42.000Z","size":784,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-16T14:29:06.722Z","etag":null,"topics":["capacitor","ionic","ios","plugin"],"latest_commit_sha":null,"homepage":"https://capgo.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cap-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"Cap-go","patreon":null,"open_collective":"capgo","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2025-09-24T09:44:22.000Z","updated_at":"2026-04-16T12:33:51.000Z","dependencies_parsed_at":"2025-09-24T13:26:33.601Z","dependency_job_id":null,"html_url":"https://github.com/Cap-go/capacitor-textinteraction","commit_stats":null,"previous_names":["cap-go/capacitor-textinteraction"],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/Cap-go/capacitor-textinteraction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-textinteraction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-textinteraction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-textinteraction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-textinteraction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap-go","download_url":"https://codeload.github.com/Cap-go/capacitor-textinteraction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-textinteraction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32050465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capacitor","ionic","ios","plugin"],"created_at":"2025-09-30T11:13:29.512Z","updated_at":"2026-04-20T14:09:05.959Z","avatar_url":"https://github.com/Cap-go.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Cap-go","https://opencollective.com/capgo"],"categories":[],"sub_categories":[],"readme":"# @capgo/capacitor-textinteraction\n \u003ca href=\"https://capgo.app/\"\u003e\u003cimg src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/?ref=plugin_textinteraction\"\u003e ➡️ Get Instant updates for your App with Capgo\u003c/a\u003e\u003c/h2\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/consulting/?ref=plugin_textinteraction\"\u003e Missing a feature? We’ll build the plugin for you 💪\u003c/a\u003e\u003c/h2\u003e\n\u003c/div\u003e\nToggle text interaction in Capacitor based iOS apps.\n\n## Documentation\n\nThe most complete doc is available here: https://capgo.app/docs/plugins/textinteraction/\n\n## Compatibility\n\n| Plugin version | Capacitor compatibility | Maintained |\n| -------------- | ----------------------- | ---------- |\n| v8.\\*.\\*       | v8.\\*.\\*                | ✅          |\n| v7.\\*.\\*       | v7.\\*.\\*                | On demand   |\n| v6.\\*.\\*       | v6.\\*.\\*                | ❌          |\n| v5.\\*.\\*       | v5.\\*.\\*                | ❌          |\n\n\u003e **Note:** The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.\n\n## Install\n\n```bash\nnpm install @capgo/capacitor-textinteraction\nnpx cap sync\n```\n\n## Usage\n\n```ts\nimport { TextInteraction } from '@capgo/capacitor-textinteraction';\n\n// Disable the iOS magnifier lens while the WebView is visible\nawait TextInteraction.toggle({ enabled: false });\n\n// Remember to re-enable before presenting any text inputs\nawait TextInteraction.toggle({ enabled: true });\n```\n\n## API\n\n\u003cdocgen-index\u003e\n\n* [`toggle(...)`](#toggle)\n* [`getPluginVersion()`](#getpluginversion)\n* [Interfaces](#interfaces)\n\n\u003c/docgen-index\u003e\n\n\u003cdocgen-api\u003e\n\u003c!--Update the source file JSDoc comments and rerun docgen to update the docs below--\u003e\n\n### toggle(...)\n\n```typescript\ntoggle(options: TextInteractionOptions) =\u003e Promise\u003cTextInteractionResult\u003e\n```\n\nToggle text interaction (selection) on the Capacitor WebView.\n\n⚠️ Disabling text interaction prevents all text input controls from working while disabled.\nUse it sparingly and re-enable when text entry is required.\n\niOS only.\n\n| Param         | Type                                                                      |\n| ------------- | ------------------------------------------------------------------------- |\n| **`options`** | \u003ccode\u003e\u003ca href=\"#textinteractionoptions\"\u003eTextInteractionOptions\u003c/a\u003e\u003c/code\u003e |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#textinteractionresult\"\u003eTextInteractionResult\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### getPluginVersion()\n\n```typescript\ngetPluginVersion() =\u003e Promise\u003c{ version: string; }\u003e\n```\n\nGet the native Capacitor plugin version\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;{ version: string; }\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### Interfaces\n\n\n#### TextInteractionResult\n\n| Prop          | Type                 | Description                                                                                      |\n| ------------- | -------------------- | ------------------------------------------------------------------------------------------------ |\n| **`success`** | \u003ccode\u003eboolean\u003c/code\u003e | `true` when the platform supports toggling text interaction (iOS \u0026gt;= 14.5), otherwise `false`. |\n\n| Method               | Signature                                    | Description                             |\n| -------------------- | -------------------------------------------- | --------------------------------------- |\n| **getPluginVersion** | () =\u0026gt; Promise\u0026lt;{ version: string; }\u0026gt; | Get the native Capacitor plugin version |\n\n\n#### TextInteractionOptions\n\n| Prop          | Type                 | Description                                                                                                          |\n| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------- |\n| **`enabled`** | \u003ccode\u003eboolean\u003c/code\u003e | Whether text interaction should be enabled or disabled. Disabling hides the magnifier lens reintroduced with iOS 15. |\n\n\u003c/docgen-api\u003e\n\n### Credits \n\nThis plugin was inspired by the work of https://github.com/astrocreep/capacitor-plugins/tree/main/packages/textinteraction\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap-go%2Fcapacitor-textinteraction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcap-go%2Fcapacitor-textinteraction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap-go%2Fcapacitor-textinteraction/lists"}