コンテンツに進む

Getting Started

GitHub

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-textinteraction
bunx cap sync
import { TextInteraction } from '@capgo/capacitor-textinteraction';

API まとめ

API Overview

toggle

toggle

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

⚠️ テキスト入力制御を無効にすると、すべてのテキスト入力制御が機能しなくなります。 使用する場合は、必要なときに再度有効にしてください。

iOS 限定

import { TextInteraction } from '@capgo/capacitor-textinteraction';
const result = await TextInteraction.toggle({ enabled: true });
console.log(result);
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.tsAPIがアップストリームで変更された場合に、パブリック APIを再度同期してください。

続けて「Getting Started」

「続けて「Getting Started」」

あなたが「Getting Started」を使用している場合 スタートガイド ダッシュボードとAPIの作業を計画するために「Getting Started」を使用している場合、 「@capgo/capacitor-textinteraction」を使用して 「@capgo/capacitor-textinteraction」を使用して API まとめ API まとめの実装詳細について 導入 導入の実装詳細について API キー API キーの実装詳細について、 デバイス デバイス