copySensitive method

Future<void> copySensitive(
  1. String text
)

Copies text (a code or a setup key) marked sensitive where the platform supports it, and clears it after MfaClientOptions.clipboardExpiry (FR-FAC-05).

Android 13+ hides sensitive clips from previews and suggestions; iOS keeps the clip local (never Universal Clipboard) and expires it; the web clears it only when that is possible without a permission prompt. Other apps can still read the clipboard until it is cleared.

Implementation

Future<void> copySensitive(String text) {
  _checkOpen();
  return _platform.copySensitive(text, expiry: _options.clipboardExpiry);
}