__CAPGO_KEEP_2__

はじめから始める

GitHub

CapgoのAI-Assisted Setupを使用してプラグインをインストールできます。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 Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の説明を参照してください。

ターミナルウィンドウ
bun add @capgo/capacitor-textinteraction
bunx cap sync
import { TextInteraction } from '@capgo/capacitor-textinteraction';

Capacitor WebViewでテキスト選択を有効/無効にします。

テキスト入力制御全てが無効になります。 使用する際は注意してください。

iOSのみ。

import { TextInteraction } from '@capgo/capacitor-textinteraction';
await TextInteraction.toggle({} as TextInteractionOptions);
export interface TextInteractionOptions {
/**
* Whether text interaction should be enabled or disabled. Disabling hides the
* magnifier lens reintroduced with iOS 15.
*/
enabled: boolean;
}
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から続けてください」のセクション

Capgoを使用している場合 Getting Started ダッシュボードとAPIの作業を計画するには、APIに接続してください Capacitorを使用してcapgo/capacitor-textinteractionを使用します for the native capability in Using @capgo/capacitor-textinteraction, APIの実装詳細 CapacitorのAPI機能 __CAPGO_KEEP_0__の実装詳細 Capacitorの__CAPGO_KEEP_0__機能 APIの実装詳細 CapacitorのAPI機能 デバイス デバイスの実装詳細について。