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.
インストール
インストールAI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、Capgo スキルをAIツールに追加します。
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
__CAPGO_KEEP_0__ を切り替えるCapacitor WebView でテキストの選択を有効にする。
テキスト入力制御がすべて無効になります。 使用する場合は、必要なときに再度有効にしてください。
iOS 限定
import { TextInteraction } from '@capgo/capacitor-textinteraction';
await TextInteraction.toggle({} as 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
テキストの選択の結果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 がアップストリームで変更された場合、再度 Sync を実行してください。
Getting Started から続けてください
「Getting Started から続けてください」というセクションCapacitor を使用している場合 Getting Started を使用してダッシュボードと __CAPGO_KEEP_0__ の操作を計画する場合、Capacitor を接続してください。 Capacitor の @API/__CAPGO_KEEP_1__-textinteraction を使用して、Capacitor のネイティブ機能を使用します。 Capacitor の @capgo/capacitor-textinteraction を使用して、Capacitor のネイティブ機能を使用します。 for the native capability in Using @capgo/capacitor-textinteraction, API Overview APIの実装詳細については、 概要 __CAPGO_KEEP_0__の概要 APIのキーの実装詳細については、 for the implementation detail in API Keys, and 実装詳細については、 ページを編集