始め方
このプラグインのインストール手順とフル マークダウン ガイドまでの全てのステップを含むセットアップの案内をコピーしてください。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-textinteraction`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/textinteraction/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
インストール
「インストール」のセクションCapgoのAIアシスタントセットアップを使用してプラグインをインストールできます。AIツールにCapgoスキルを追加するには、以下のコマンドを実行してください。
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次に、以下のプロンプトを使用してください。
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-textinteraction` plugin in my project.Manualセットアップを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-textinteractionbunx cap syncインポート
「インポート」セクションimport { TextInteraction } from '@capgo/capacitor-textinteraction';API オーバービュー
「API オーバービュー」セクションtoggle
「toggle」セクションCapacitor WebView でテキストのインタラクション (選択) をオン/オフします。
テキスト入力制御全てが機能しなくなります。 テキスト入力が必要な場合には、慎重に使用し、再度有効にします。
iOS 限定
import { TextInteraction } from '@capgo/capacitor-textinteraction';
await TextInteraction.toggle({} as TextInteractionOptions);型リファレンス
「型リファレンス」セクションTextInteractionOptions
「TextInteractionOptions」セクションexport interface TextInteractionOptions { /** * Whether text interaction should be enabled or disabled. Disabling hides the * magnifier lens reintroduced with iOS 15. */ enabled: boolean;}TextInteractionResult
「TextInteractionResult」セクションexport interface TextInteractionResult { /** * `true` when the platform supports toggling text interaction (iOS >= 14.5), otherwise `false`. */ success: boolean;
/** * Get the native Capacitor plugin version * * @returns {Promise<{ id: string }>} an Promise with version for this device * @throws An error if the something went wrong */ getPluginVersion(): Promise<{ version: string }>;}真実の源
「真実の源」セクションこのページはプラグインから生成されています。 src/definitions.tsパブリック API がアップストリームで変更された場合に再度同期を実行してください。
「Getting Started」から続けて
「Getting Started」から続けてあなたが使用している場合 「Getting Started」 ダッシュボードとAPIの作業を計画し、接続する Using @capgo/capacitor-textinteraction Using @capgo/capacitor-textinteractionのネイティブ機能 APIの概要 APIの実装詳細 導入 __CAPGO_KEEP_0__のキー APIの実装詳細 for the implementation detail in API Keys, and __CAPGO_KEEP_0__の実装詳細 ページを編集