Getting Started
复制一个包含安装步骤和本插件的完整Markdown指南的设置提示。
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.
bun add @capgo/capacitor-textinteractionbunx cap syncimport { 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
__CAPGO_KEEP_0__ 文本交互选项export interface TextInteractionOptions { /** * Whether text interaction should be enabled or disabled. Disabling hides the * magnifier lens reintroduced with iOS 15. */ enabled: boolean;}TextInteractionResult
__CAPGO_KEEP_0__ 文本交互结果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上游发生变化时,请重新同步。
继续从入门
继续从入门如果您正在使用 入门 规划仪表板和API操作时,请将其连接到 使用@capgo/capacitor-textinteraction 在使用@capgo/capacitor-textinteraction API概述 为实现细节在API概述中 简介 为实现细节在简介中 API密钥 为实现细节在API密钥中,和 设备 为实现细节在设备中。