跳过内容

Getting Started

终端窗口
bun add @capgo/capacitor-textinteraction
bunx cap sync
import { TextInteraction } from '@capgo/capacitor-textinteraction';

API 概述

API 概述

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上游发生变化时,请重新同步。

继续从入门

继续从入门

如果您正在使用 入门 规划仪表板和API操作时,请将其连接到 使用@capgo/capacitor-textinteraction 在使用@capgo/capacitor-textinteraction API概述 为实现细节在API概述中 简介 为实现细节在简介中 API密钥 为实现细节在API密钥中,和 设备 为实现细节在设备中。