Getting Started
インストールステップとこのプラグインのフルマークダウンガイドを含むセットアップの質問をコピーしてください。
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.
インストール
Section titled “インストール”AI-Assisted セットアップを使用してプラグインをインストールできます。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.手動セットアップを好みますか?その場合、以下のコマンドを実行し、下記のプラットフォーム固有の指示に従ってプラグインをインストールしてください。
bun add @capgo/capacitor-textinteractionbunx cap syncimport { TextInteraction } from '@capgo/capacitor-textinteraction';API まとめ
API Overviewtoggle
toggleCapacitor WebView でテキスト選択を有効にします。
⚠️ テキスト入力制御を無効にすると、すべてのテキスト入力制御が機能しなくなります。 使用する場合は、必要なときに再度有効にしてください。
iOS 限定
import { TextInteraction } from '@capgo/capacitor-textinteraction';
const result = await TextInteraction.toggle({ enabled: true });console.log(result);タイプ リファレンス
Section titled “TextInteractionOptions”TextInteractionOptions
Section titled “TextInteractionResult”export interface TextInteractionOptions { /** * Whether text interaction should be enabled or disabled. Disabling hides the * magnifier lens reintroduced with iOS 15. */ enabled: boolean;}TextInteractionResult
Section titled “__CAPGO_KEEP_0__ Overview”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.tsAPIがアップストリームで変更された場合に、パブリック APIを再度同期してください。
続けて「Getting Started」
「続けて「Getting Started」」あなたが「Getting Started」を使用している場合 スタートガイド ダッシュボードとAPIの作業を計画するために「Getting Started」を使用している場合、 「@capgo/capacitor-textinteraction」を使用して 「@capgo/capacitor-textinteraction」を使用して API まとめ API まとめの実装詳細について 導入 導入の実装詳細について API キー API キーの実装詳細について、 デバイス デバイス