clipboard_monitor 0.9.2 copy "clipboard_monitor: ^0.9.2" to clipboard
clipboard_monitor: ^0.9.2 copied to clipboard

Flutter plugin for monitoring system clipboard on Android and iOS.

clipboard_monitor #

Flutter plugin for monitoring system clipboard on Android and iOS.

Usage #

import 'package:clipboard_monitor/clipboard_monitor.dart';

void startClipboardMonitor()  {
    ClipboardMonitor.registerCallback(onClipboardText);
}

void stopClipboardMonitor()  {
    ClipboardMonitor.unregisterCallback(onClipboardText);
}

void onClipboardText(String text) {
    print("clipboard changed: $text");
}

void stopAllClipboardMonitoring() {
    ClipboardMonitor.unregisterAllCallbacks();
}

Limitations #

Clipboard monitoring will not work when app is not running. Also Android 10 (API level 29) and above restricts access to clipboard when app is not in focus.

Contributors #

jinyus

15
likes
160
points
47
downloads

Publisher

verified publishermix1009.com

Weekly Downloads

Flutter plugin for monitoring system clipboard on Android and iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on clipboard_monitor