コンテンツにジャンプ

はじめから

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から

If you are using Getting Started to plan dashboard and API operations, connect it with Using @capgo/capacitor-textinteraction for the native capability in Using @capgo/capacitor-textinteraction API Overview for the implementation detail in API Overview Introduction for the implementation detail in Introduction API Keys for the implementation detail in API Keys, and Devices デバイスの実装詳細について。