Aller directement au contenu

Démarrage

Fenêtre de terminal
bun add @capgo/capacitor-textinteraction
bunx cap sync
import { TextInteraction } from '@capgo/capacitor-textinteraction';

Activer/désactiver l'interaction avec le texte (sélection) dans la vue Capacitor.

⚠️ La désactivation de l'interaction avec le texte empêche tous les contrôles d'entrée de texte de fonctionner tant qu'ils sont désactivés. Utilisez-le avec parcimonie et réactivez-le lorsque l'entrée de texte est requise.

Disponible uniquement sur 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 }>;
}

Cette page est générée à partir du plugin&#39;s src/definitions.tsRe-run la synchronisation lorsque le public API change en amont.